properly close task dialog when document is getting closed

This commit is contained in:
wmayer
2017-04-07 15:16:04 +02:00
parent aaac13c2d3
commit 52c3b4580e
3 changed files with 15 additions and 2 deletions

View File

@@ -449,6 +449,12 @@ void TaskFeaturePick::slotUndoDocument(const Gui::Document&)
}
}
void TaskFeaturePick::slotDeleteDocument(const Gui::Document&)
{
origins.clear();
QTimer::singleShot(100, &Gui::Control(), SLOT(closeDialog()));
}
void TaskFeaturePick::showExternal(bool val)
{
ui->checkOtherBody->setChecked(val);