X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.cpp;h=c6e1de294320c5b6797bb1424dca1ae99dc6364a;hb=2c47d556b83e0c1a3e80ec2310b6b9ac1c688974;hp=5956276b3add6f79abb0a9c05a0691bd777d7697;hpb=196fb465dc1fd7495cd79f35a2272118cdb0d9a8;p=evaf
diff --git a/src/plugins/SdiWindow/sdiwindow.cpp b/src/plugins/SdiWindow/sdiwindow.cpp
index 5956276..c6e1de2 100644
--- a/src/plugins/SdiWindow/sdiwindow.cpp
+++ b/src/plugins/SdiWindow/sdiwindow.cpp
@@ -292,6 +292,20 @@ void SdiWindow::Internal::MainWindow::panelDestroyed(QObject * obj)
}
}
}
+ {
+ QVector::iterator it = mMinimizedPanels.begin();
+ while (it != mMinimizedPanels.end())
+ {
+ if (*it == obj)
+ {
+ it = mMinimizedPanels.erase(it);
+ }
+ else
+ {
+ ++it;
+ }
+ }
+ }
// Do the same with panel names
{
@@ -306,6 +320,7 @@ void SdiWindow::Internal::MainWindow::panelDestroyed(QObject * obj)
}
}
+ // If it was the main panel, set the main panel to NULL
if (mMainPanel == obj) {
mMainPanel = 0;
}