diff --git a/avidemux/cli/ADM_userInterfaces/ADM_gui2/gui_none.cpp b/avidemux/cli/ADM_userInterfaces/ADM_gui2/gui_none.cpp index 9e26ffec3..180ca9b9a 100644 --- a/avidemux/cli/ADM_userInterfaces/ADM_gui2/gui_none.cpp +++ b/avidemux/cli/ADM_userInterfaces/ADM_gui2/gui_none.cpp @@ -213,4 +213,7 @@ void UI_notifyWarning(const char *message, int timeoutMs) {} void UI_notifyError(const char *message, int timeoutMs) {} + +void UI_needsAttention(void) +{} // EOF diff --git a/avidemux/common/ADM_commonUI/GUI_ui.h b/avidemux/common/ADM_commonUI/GUI_ui.h index 0293a7d06..14ce7da5a 100644 --- a/avidemux/common/ADM_commonUI/GUI_ui.h +++ b/avidemux/common/ADM_commonUI/GUI_ui.h @@ -62,6 +62,8 @@ void UI_notifyInfo(const char *message, int timeoutMs); void UI_notifyWarning(const char *message, int timeoutMs); void UI_notifyError(const char *message, int timeoutMs); +void UI_needsAttention(void); + /* We need to know whether auto-repeat is firing */ bool UI_navigationButtonsPressed(void); diff --git a/avidemux/common/gui_main.cpp b/avidemux/common/gui_main.cpp index 49bae370b..d521c8c73 100644 --- a/avidemux/common/gui_main.cpp +++ b/avidemux/common/gui_main.cpp @@ -1078,6 +1078,7 @@ int A_openVideo (const char *name) } delete[] longname; + UI_needsAttention(); // loading done, alert the user return 1; } /** @@ -1169,6 +1170,7 @@ int A_appendVideo (const char *name) ReSync(); GUI_setCurrentFrameAndTime(); UI_setMarkers (video_body->getMarkerAPts(),video_body->getMarkerBPts()); + UI_needsAttention(); // loading done, alert the user return 1; } diff --git a/avidemux/common/gui_savenew.cpp b/avidemux/common/gui_savenew.cpp index 27f028922..5423f27a2 100644 --- a/avidemux/common/gui_savenew.cpp +++ b/avidemux/common/gui_savenew.cpp @@ -101,6 +101,7 @@ int A_Save(const char *name) ADM_slaveSendResult(r); A_Rewind(); GUI_GoToTime(current); + UI_needsAttention(); // saving done, alert the user return (int)r; } diff --git a/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp b/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp index 38467f4d5..954f989e3 100644 --- a/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp +++ b/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp @@ -3628,6 +3628,14 @@ void UI_notifyError(const char *message, int timeoutMs) { ((MainWindow *)QuiMainWindows)->notifyStatusBar(QT_TRANSLATE_NOOP("qgui2","ERROR: %1"), message, timeoutMs); } + +/** + \fn UI_needsAttention +*/ +void UI_needsAttention(void) +{ + QApplication::alert(NULL); +} /** * \fn dtor */