[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Thu Mar 15 21:03:13 CET 2007


SVN commit 642908 by treat:

* The waitcondition will take care of unlocking
for us.


 M  +1 -1      kst.cpp  
 M  +1 -1      kstdoc.cpp  
 M  +0 -2      updatethread.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/kst.cpp #642907:642908
@@ -175,7 +175,7 @@
 
   _updateThread = new UpdateThread(doc);
   _updateThread->setUpdateTime(KstSettings::globalSettings()->plotUpdateTimer);
-//   _updateThread->start();
+  _updateThread->start();
 
   /*** Plot Dialog signals */
   connect(changeFileDialog, SIGNAL(docChanged()),
--- branches/work/kst/portto4/kst/src/libkstapp/kstdoc.cpp #642907:642908
@@ -234,7 +234,7 @@
     return false;
   }
 
-  _title = url.fileName(false);
+  _title = url.fileName(KUrl::AppendTrailingSlash);
   _absFilePath = url.url();
   _lastFilePath = url.url();
   if (_title.isEmpty()) {
--- branches/work/kst/portto4/kst/src/libkstapp/updatethread.cpp #642907:642908
@@ -67,7 +67,6 @@
   while (!_done) {
     _statusMutex.lock();
     updateTime = _updateTime;
-    _statusMutex.unlock();
 
     if (_waitCondition.wait(&_statusMutex, _updateTime)) {
 #if UPDATEDEBUG > 0
@@ -78,7 +77,6 @@
       }
     }
 
-    _statusMutex.lock();
     if (_done) {
       _statusMutex.unlock();
       break;


More information about the Kst mailing list