diff framework/MainWindowBase.cpp @ 453:549f77216048

Rewind/ffwd shouldn't be available when nothing loaded
author Chris Cannam
date Wed, 06 May 2015 13:30:43 +0100
parents c651a736ebc4
children ea30a8c4cb93 56acd9368532
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Wed May 06 13:00:57 2015 +0100
+++ b/framework/MainWindowBase.cpp	Wed May 06 13:30:43 2015 +0100
@@ -597,8 +597,8 @@
     emit canMeasureLayer(haveCurrentLayer);
     emit canSelect(haveMainModel && haveCurrentPane);
     emit canPlay(haveMainModel && havePlayTarget);
-    emit canFfwd(true);
-    emit canRewind(true);
+    emit canFfwd(haveMainModel);
+    emit canRewind(haveMainModel);
     emit canPaste(haveClipboardContents);
     emit canInsertInstant(haveCurrentPane);
     emit canInsertInstantsAtBoundaries(haveCurrentPane && haveSelection);