From e3060e54ef80f2bdb19637ae84099069116c08a3 Mon Sep 17 00:00:00 2001 From: Petr Bena Date: Thu, 26 Jun 2014 16:40:47 +0200 Subject: [PATCH] revertquery improvemen --- huggle/revertquery.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/huggle/revertquery.cpp b/huggle/revertquery.cpp index e4e9a55e9..4d86df752 100644 --- a/huggle/revertquery.cpp +++ b/huggle/revertquery.cpp @@ -12,7 +12,6 @@ #include #include #include "configuration.hpp" -#include "core.hpp" #include "exception.hpp" #include "querypool.hpp" #include "history.hpp" @@ -243,7 +242,7 @@ void RevertQuery::Preflight() text = (_l("cr-message-not-same", this->edit->Page->PageName)); } QMessageBox::StandardButton re; - re = QMessageBox::question(Core::HuggleCore->Main, _l("revert-preflightcheck"), + re = QMessageBox::question(MainWindow::HuggleMain, _l("revert-preflightcheck"), text, QMessageBox::Yes|QMessageBox::No); if (re == QMessageBox::No) { @@ -370,7 +369,7 @@ void RevertQuery::CheckPreflight() } } QMessageBox::StandardButton re; - re = QMessageBox::question(Core::HuggleCore->Main, _l("revert-preflightcheck"), text, QMessageBox::Yes|QMessageBox::No); + re = QMessageBox::question(MainWindow::HuggleMain, _l("revert-preflightcheck"), text, QMessageBox::Yes|QMessageBox::No); if (re == QMessageBox::No) { // abort @@ -412,8 +411,8 @@ bool RevertQuery::CheckRevert() item->Target = this->qRevert->Target; item->Type = HistoryRollback; item->Result = "Success"; - if (Core::HuggleCore->Main != nullptr) - Core::HuggleCore->Main->_History->Prepend(item); + if (MainWindow::HuggleMain != nullptr) + MainWindow::HuggleMain->_History->Prepend(item); } this->qRevert->UnregisterConsumer(HUGGLECONSUMER_REVERTQUERY); this->qRevert = nullptr;