Skip to content

Commit

Permalink
fixed broken logic of global events for questions
Browse files Browse the repository at this point in the history
this fix the broken results in report user dialog
  • Loading branch information
benapetr committed May 27, 2018
1 parent dc3d635 commit 38c66fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/huggle_core/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ void Events::on_SError(QString title, QString text)
bool Events::on_SYesNoQs(QString title, QString text, bool d)
{
bool result = d;
emit this->System_YesNoQuestion(title, text, &d);
emit this->System_YesNoQuestion(title, text, &result);
return result;
}
2 changes: 1 addition & 1 deletion src/huggle_ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3568,7 +3568,7 @@ void MainWindow::OnWarning(QString title, QString text)
void MainWindow::OnQuestion(QString title, QString text, bool *y)
{
int result = UiGeneric::MessageBox(title, text, MessageBoxStyleQuestion);
if (result)
if (result == QMessageBox::Yes)
*y = true;
else
*y = false;
Expand Down

0 comments on commit 38c66fc

Please sign in to comment.