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

List:       kde-commits
Subject:    branches/KDE/4.5/kdegraphics/okular
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2010-07-05 22:30:27
Message-ID: 20100705223027.DE5BDAC8E6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1146401 by aacid:

Only start watching the file in case if it wasn't removed, thus was modified
Patch by Victor Blázquez
BUGS: 234139


 M  +4 -0      part.cpp  


--- branches/KDE/4.5/kdegraphics/okular/part.cpp #1146400:1146401
@@ -1154,7 +1154,11 @@
     // written to the file.
     if ( path == localFilePath() )
     {
+        // Only start watching the file in case if it wasn't removed, thus was modified
+        if (QFile::exists(localFilePath()))
         m_dirtyHandler->start( 750 );
+	else
+            m_fileWasRemoved = true;
     }
     else
     {
[prev in list] [next in list] [prev in thread] [next in thread] 

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