summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-07-20 06:58:50 +0200
committerArno <arno@disconnect.de>2017-07-20 06:58:50 +0200
commit4ebd741d2bd6061dd4812adf0a89bd0cdb81023d (patch)
tree3e39abb2b5b28c15bf34941e741c43bcda2e8ebb /shemov.cpp
parent7c6deee2325d83f711fd28767467865da7cda848 (diff)
downloadSheMov-4ebd741d2bd6061dd4812adf0a89bd0cdb81023d.tar.gz
SheMov-4ebd741d2bd6061dd4812adf0a89bd0cdb81023d.tar.bz2
SheMov-4ebd741d2bd6061dd4812adf0a89bd0cdb81023d.zip
Fix one crash and compile issues
Don't access FileName in constructWindowTitle when we don't have a file at mCurPos. That's what crashed us randomly! Also (yes, I know, should be a separate commit) fix warnings about implicit fallthru's in switch statements. The one in SmDirModel actually was a bug, the one in tabChanged is just a nuisance. Also (again), shuffle header inclusion in SmGlobals so Xlib and QT don't clash.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 9804e94..341cb83 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -222,6 +222,8 @@ void SheMov::tabChanged(int newTab){
case Pictures:
connect(mPVSelectAllA, SIGNAL(triggered()), mPicWidget->picView(), SLOT(setPVAll()));
mPicWidget->constructWindowTitle();
+ setDuration(0x0, false);
+ break;
default:
setDuration(0x0, false);
;;