[Pkg-running-devel] [openambit] 48/131: Make sure to not try to write to movescount if movescount not enabled

Christian Perrier bubulle at moszumanska.debian.org
Thu Jul 17 20:19:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

bubulle pushed a commit to branch master
in repository openambit.

commit 41e60dd649b6230c9838ef9494e4c76439520330
Author: Emil Ljungdahl <emil at kratern.se>
Date:   Tue Jan 14 21:15:10 2014 +0100

    Make sure to not try to write to movescount if movescount not enabled
---
 src/openambit/mainwindow.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/openambit/mainwindow.cpp b/src/openambit/mainwindow.cpp
index 71ec64c..1027943 100644
--- a/src/openambit/mainwindow.cpp
+++ b/src/openambit/mainwindow.cpp
@@ -309,7 +309,9 @@ void MainWindow::logItemWriteMovescount()
 
     logEntry = logStore.read(ui->logsList->selectedItems().at(0)->data(Qt::UserRole).toString());
     if (logEntry != NULL) {
-        movesCount->writeLog(logEntry);
+        if (movesCount != NULL) {
+            movesCount->writeLog(logEntry);
+        }
         movesCountXML.writeLog(logEntry);
         delete logEntry;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git



More information about the Pkg-running-devel mailing list