Qt: Add sound if download fails
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "progress_dialog.h"
|
#include "progress_dialog.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QApplication>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -86,6 +86,8 @@ void progress_dialog::SignalFailure() const
|
|||||||
m_tb_progress->stop();
|
m_tb_progress->stop();
|
||||||
#endif
|
#endif
|
||||||
// TODO: Implement an equivalent for Linux, if possible
|
// TODO: Implement an equivalent for Linux, if possible
|
||||||
|
|
||||||
|
QApplication::beep();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_QTDBUS
|
#ifdef HAVE_QTDBUS
|
||||||
|
|||||||
Reference in New Issue
Block a user