# HG changeset patch # User Chris Cannam # Date 1432218738 -3600 # Node ID 1ab4ac6b2fcb8c8fd85716c8f1033b0ab780d53c # Parent 3e2a2ca24d90513a075ab79755c9c4e366ebb2aa# Parent 549f772160484927754b245436281bfcb401468e Merge diff -r 3e2a2ca24d90 -r 1ab4ac6b2fcb framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Thu May 21 15:31:12 2015 +0100 +++ b/framework/MainWindowBase.cpp Thu May 21 15:32:18 2015 +0100 @@ -164,6 +164,8 @@ XSetErrorHandler(handle_x11_error); #endif + connect(this, SIGNAL(hideSplash()), this, SLOT(emitHideSplash())); + connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()), this, SLOT(documentModified())); connect(CommandHistory::getInstance(), SIGNAL(documentRestored()), @@ -259,6 +261,8 @@ if (withMIDIInput) { m_midiInput = new MIDIInput(QApplication::applicationName(), this); } + + QTimer::singleShot(1500, this, SIGNAL(hideSplash())); } MainWindowBase::~MainWindowBase() @@ -275,6 +279,12 @@ } void +MainWindowBase::emitHideSplash() +{ + emit hideSplash(this); +} + +void MainWindowBase::finaliseMenus() { delete m_menuShortcutMapper; @@ -587,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); diff -r 3e2a2ca24d90 -r 1ab4ac6b2fcb framework/MainWindowBase.h --- a/framework/MainWindowBase.h Thu May 21 15:31:12 2015 +0100 +++ b/framework/MainWindowBase.h Thu May 21 15:32:18 2015 +0100 @@ -159,6 +159,7 @@ void canSave(bool); void canSaveAs(bool); void hideSplash(); + void hideSplash(QWidget *); void sessionLoaded(); void audioFileLoaded(); void replacedDocument(); @@ -288,6 +289,8 @@ virtual void closeSession() = 0; + virtual void emitHideSplash(); + virtual void newerVersionAvailable(QString) { } virtual void menuActionMapperInvoked(QObject *);