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

List:       kde-commits
Subject:    [kdenlive] src: Fix progressbar still visible after project open
From:       Jean-Baptiste Mardelle <jb () kdenlive ! org>
Date:       2016-11-18 10:22:33
Message-ID: E1c7gJV-0005VN-B3 () code ! kde ! org
[Download RAW message or body]

Git commit 5964cf8d9e18ebdb51a89de9bb2d1374c316e47b by Jean-Baptiste Mardelle.
Committed on 18/11/2016 at 09:48.
Pushed by mardelle into branch 'master'.

Fix progressbar still visible after project open

M  +2    -2    src/doc/kdenlivedoc.cpp
M  +2    -2    src/project/projectmanager.cpp

http://commits.kde.org/kdenlive/5964cf8d9e18ebdb51a89de9bb2d1374c316e47b

diff --git a/src/doc/kdenlivedoc.cpp b/src/doc/kdenlivedoc.cpp
index 8e89212..37f899d 100644
--- a/src/doc/kdenlivedoc.cpp
+++ b/src/doc/kdenlivedoc.cpp
@@ -219,7 +219,7 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QString \
&projectFolder, QUndoGro  }
             else {
                 qDebug()<<" // / processing file open: validate";
-                parent->slotGotProgressInfo(i18n("Validating"), 0);
+                parent->slotGotProgressInfo(i18n("Validating"), 100);
                 qApp->processEvents();
                 DocumentValidator validator(m_document, url);
                 success = validator.isProject();
@@ -241,7 +241,7 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QString \
&projectFolder, QUndoGro  }
                     if (success) { // Let the validator handle error messages
                         qDebug()<<" // / processing file validate ok";
-                        parent->slotGotProgressInfo(i18n("Check missing clips"), 0);
+                        parent->slotGotProgressInfo(i18n("Check missing clips"), \
100);  qApp->processEvents();
                         DocumentChecker d(m_url, m_document);
                         success = !d.hasErrorInClips();
diff --git a/src/project/projectmanager.cpp b/src/project/projectmanager.cpp
index 704f387..ac0dd45 100644
--- a/src/project/projectmanager.cpp
+++ b/src/project/projectmanager.cpp
@@ -580,13 +580,13 @@ void ProjectManager::doOpenFile(const QUrl &url, KAutoSaveFile \
*stale)  if (!ok) {
         pCore->window()->m_timelineArea->setEnabled(false);
         KMessageBox::sorry(pCore->window(), i18n("Cannot open file %1.\nProject is \
                corrupted.", url.path()));
-        pCore->window()->slotGotProgressInfo(QString(), -1);
+        pCore->window()->slotGotProgressInfo(QString(), 100);
         newFile(false, true);
         return;
     }
     m_trackView->setDuration(m_trackView->duration());
 
-    pCore->window()->slotGotProgressInfo(QString(), -1);
+    pCore->window()->slotGotProgressInfo(QString(), 100);
     pCore->monitorManager()->projectMonitor()->adjustRulerSize(m_trackView->duration() \
                - 1);
     pCore->monitorManager()->projectMonitor()->slotZoneMoved(m_trackView->inPoint(), \
m_trackView->outPoint());  if (openBackup) {


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

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