Add a waitcursor while the planes are being created.

This commit is contained in:
Maxime Gimeno 2016-06-16 09:49:37 +02:00
parent 62505b331e
commit e95f28a2f6
1 changed files with 2 additions and 0 deletions

View File

@ -503,6 +503,7 @@ private:
}
void createPlanes(Scene_image_item* seg_img) {
QApplication::setOverrideCursor(Qt::WaitCursor);
//Control widgets creation
QLayout* layout = createOrGetDockLayout();
if(x_control == NULL)
@ -664,6 +665,7 @@ private Q_SLOTS:
{
msgBox.hide();
nbPlanes = 0;
QApplication::restoreOverrideCursor();
}
}
// Avoids the segfault after the deletion of an item