[Bug 68559] crash on clicking docbook compilation errors in messages window

Jens Dagerbo jens.dagerbo at swipnet.se
Wed Nov 19 09:00:07 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=68559     
jens.dagerbo at swipnet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo at swipnet.se  2003-11-19 08:59 -------
Subject: kdevelop/parts/texttools

CVS commit by dagerbo: 


Apparently embedding/removing/embedding isn't healthy with the new 
KMDI implementation, so let's avoid that. :)

This slightly changes the behaviour of the TextToolsPart. It will no
longer hide when the active window isn't a .html, .docbook or .tex file, 
just clear it's contents. It will have to do for now.


CCMAIL: 68559-done at bugs.kde.org


  M +4 -3      texttoolspart.cpp   1.10


--- kdevelop/parts/texttools/texttoolspart.cpp  #1.9:1.10
@@ -52,5 +52,5 @@ void TextToolsPart::createWidget()
     if (m_widget)
     {
-        mainWindow()->embedSelectView(m_widget, i18n("Text Structure"), i18n("Text structure"));
+//        mainWindow()->embedSelectView(m_widget, i18n("Text Structure"), i18n("Text structure"));
         return;
     }
@@ -89,6 +89,7 @@ void TextToolsPart::activePartChanged(KP
         m_widget->setMode(TextToolsWidget::LaTeX, rwpart);
     } else if (m_widget) {
-        kdDebug(9030) << "hide output view" << endl;
-        mainWindow()->removeView(m_widget);
+//        kdDebug(9030) << "hide output view" << endl;
+//        mainWindow()->removeView(m_widget);
+        m_widget->clear();
     }
 }




More information about the KDevelop-devel mailing list