actions: make askYesNoQuestion use NC::Window::prompt

This commit is contained in:
Andrzej Rybczak
2014-10-31 20:04:20 +01:00
parent cb578125cc
commit a8b46a8e47
6 changed files with 62 additions and 31 deletions

View File

@@ -67,10 +67,10 @@ void setResizeFlags();
void resizeScreen(bool reload_main_window);
void setWindowsDimensions();
bool askYesNoQuestion(const boost::format &question, void (*callback)());
inline bool askYesNoQuestion(const std::string &question, void (*callback)())
bool askYesNoQuestion(const boost::format &question);
inline bool askYesNoQuestion(const std::string &question)
{
return askYesNoQuestion(boost::format(question), callback);
return askYesNoQuestion(boost::format(question));
}
bool isMPDMusicDirSet();