From bc7c42dbe8dd85a77a2eb8c1d094c77aa5cb7b1f Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 20 Oct 2013 16:51:40 +0200 Subject: - directories in data-view are now sorted - questionbox with selection memory is now exposed to plugins - the choice to run fnis from the checker can now be memorized --- src/mainwindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4c72ada3..14bb3b59 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -59,14 +59,15 @@ along with Mod Organizer. If not, see . #include #include #include +#include #include #include -#include #include +#include +#include #include #include #include -#include #include #include #include @@ -162,6 +163,8 @@ MainWindow::MainWindow(const QString &exeName, QSettings &initSettings, QWidget ui->actionEndorseMO->setVisible(false); + MOBase::QuestionBoxMemory::init(initSettings.fileName()); + updateProblemsButton(); updateToolBar(); @@ -1264,7 +1267,7 @@ HANDLE MainWindow::spawnBinaryDirect(const QFileInfo &binary, const QString &arg (m_Settings.getLoadMechanism() == LoadMechanism::LOAD_MODORGANIZER)) { if (!testForSteam()) { if (QuestionBoxMemory::query(this->isVisible() ? this : NULL, - m_Settings.directInterface(), "steamQuery", tr("Start Steam?"), + "steamQuery", tr("Start Steam?"), tr("Steam is required to be running already to correctly start the game. " "Should MO try to start steam now?"), QDialogButtonBox::Yes | QDialogButtonBox::No) == QDialogButtonBox::Yes) { @@ -3094,7 +3097,7 @@ void MainWindow::testExtractBSA(int modIndex) QFileInfoList archives = dir.entryInfoList(QStringList("*.bsa")); if (archives.length() != 0 && - (QuestionBoxMemory::query(this, m_Settings.directInterface(), "unpackBSA", tr("Extract BSA"), + (QuestionBoxMemory::query(this, "unpackBSA", tr("Extract BSA"), tr("This mod contains at least one BSA. Do you want to unpack it?\n" "(This removes the BSA after completion. If you don't know about BSAs, just select no)"), QDialogButtonBox::Yes | QDialogButtonBox::No, QDialogButtonBox::No) == QMessageBox::Yes)) { -- cgit v1.3.1