[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    QUANTA_3_1_BRANCH: quanta
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-05-08 9:04:20
[Download RAW message or body]

CVS commit by amantia: 

Fix possible crashes when using read plugins. (backport)


  M +2 -0      ChangeLog   1.90.2.70
  M +2 -2      quanta/quantadoc.cpp   1.79.2.7


--- quanta/ChangeLog  #1.90.2.69:1.90.2.70
@@ -2,4 +2,6 @@
 
 Version 3.1.3 (Release date: xx-xx-2003)
+  - bugfixes:
+    - fix possible crashes when using plugins
 
 Version 3.1.2 (Release date: 12-05-2003)

--- quanta/quanta/quantadoc.cpp  #1.79.2.6:1.79.2.7
@@ -651,8 +651,8 @@ void QuantaDoc::slotFileDirty(const QStr
   {
     w = dynamic_cast<Document*>(tab->page(i));
-    if ( w->url().path()==fileName )
+    if ( w && w->url().path() == fileName )
     {
       w->setDirtyStatus(true);
-      if (w == write())
+      if (quantaApp->view->writeExists() && w == write())
       {
         w->checkDirtyStatus();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic