NOISSUE do not show file browse dialog twice

This commit is contained in:
Petr Mrázek 2015-05-06 07:22:24 +02:00
parent 34a5e59007
commit 9598f80335
7 changed files with 1 additions and 7 deletions

View File

@ -94,7 +94,7 @@ QStringList GuiUtil::BrowseForMods(QString context, QString caption, QString fil
if (w.exec())
{
savedPaths[context] = w.directory().absolutePath();
return w.getOpenFileNames();
return w.selectedFiles();
}
savedPaths[context] = w.directory().absolutePath();
return {};

View File

@ -321,7 +321,6 @@ namespace Ui {
#include <QWidgetAction>
#include <QProgressDialog>
#include <QShortcut>
#include <QFileDialog>
#include <MMCZip.h>

View File

@ -17,7 +17,6 @@
#include "ui_LegacyJarModPage.h"
#include <QKeyEvent>
#include <QFileDialog>
#include <QKeyEvent>
#include <pathutils.h>

View File

@ -16,7 +16,6 @@
#include "ModFolderPage.h"
#include "ui_ModFolderPage.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QEvent>
#include <QKeyEvent>

View File

@ -16,7 +16,6 @@
#include "OtherLogsPage.h"
#include "ui_OtherLogsPage.h"
#include <QFileDialog>
#include <QMessageBox>
#include "GuiUtil.h"

View File

@ -16,7 +16,6 @@
#include "MultiMC.h"
#include <pathutils.h>
#include <QFileDialog>
#include <QMessageBox>
#include <QEvent>
#include <QKeyEvent>

View File

@ -16,7 +16,6 @@
#include "MinecraftPage.h"
#include "ui_MinecraftPage.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QDir>