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

List:       kde-commits
Subject:    branches/extragear/kde3/graphics/kst/src/libkstapp
From:       Andrew Walker <arwalker () sumusltd ! com>
Date:       2010-05-28 19:06:51
Message-ID: 20100528190651.412F4AC8C1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1131712 by arwalker:

BUG:239907 no longer update progress bar when writing vectors to disk so as to avoid a deadlock

 M  +0 -8      kstdatacollection-gui.cpp  


--- branches/extragear/kde3/graphics/kst/src/libkstapp/kstdatacollection-gui.cpp #1131711:1131712
@@ -154,7 +154,6 @@
 
 
 int KstGuiData::vectorsToFile(const KstVectorList& vl, QFile *f, bool interpolate) {
-  KstApp *app = KstApp::inst();
   int maxlen = -1;
 
   if (interpolate) { // code duplication is faster
@@ -175,8 +174,6 @@
   }
 
   QString saving = i18n("Saving vectors...");
-  register int modval = kMax(maxlen/100, 100);
-  app->slotUpdateProgress(maxlen, 0, QString::null);
 
   bool first = true;
   QString ltxt = ";";
@@ -214,17 +211,12 @@
     }
     ltxt += "\n";
     f->writeBlock(ltxt.ascii(), ltxt.length());
-    if (line % modval == 0) {
-      app->slotUpdateProgress(maxlen, line, saving);
     }
-  }
 
   for (KstVectorList::ConstIterator v = vl.begin(); v != vl.end(); ++v) {
     (*v)->unlock();
   }
 
-  app->slotUpdateProgress(0, 0, QString::null);
-
   return 0;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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