[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Oct 1 13:44:07 CEST 2004


CVS commit by staikos: 

work around a bug in KMDI - it activate()s a window from the destructor for
some reason!! (in at least some cases)


  M +10 -7     kstviewwindow.cpp   1.40


--- kdeextragear-2/kst/kst/kstviewwindow.cpp  #1.39:1.40
@@ -118,4 +118,6 @@ void KstViewWindow::readProperties(KConf
 
 void KstViewWindow::slotActivated(KMdiChildView*) {
+  // KDE bug: KMDIMainFrm close -> activate -> loops back from the destructor
+  if (KstApp::inst()) {
   if (KstApp::inst()->getZoomRadio() == KstApp::LAYOUT) {
     if( view()->viewMode() == KstTopLevelView::DisplayMode ) {
@@ -127,4 +129,5 @@ void KstViewWindow::slotActivated(KMdiCh
     }
   }
+  }
 }
 





More information about the Kst mailing list