diff -r 61e2752dd7cd -r 256bb5c6b77f src/misc.cpp --- a/src/misc.cpp Sun Sep 08 17:44:58 2013 +0300 +++ b/src/misc.cpp Sun Sep 08 19:56:11 2013 +0300 @@ -17,6 +17,7 @@ */ #include "misc.h" +#include EXTERN_CONFIG (List, devBuildNames) EXTERN_CONFIG (List, releaseNames) @@ -60,4 +61,11 @@ return path.mid (lastpos + 1); return path; +} + +// ============================================================================= +// ----------------------------------------------------------------------------- +bool confirm (str text) { + return QMessageBox::question (null, QObject::tr ("Confirm"), text, + QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::No; } \ No newline at end of file