NOISSUE do not show file browse dialog twice
This commit is contained in:
parent
34a5e59007
commit
9598f80335
@ -94,7 +94,7 @@ QStringList GuiUtil::BrowseForMods(QString context, QString caption, QString fil
|
|||||||
if (w.exec())
|
if (w.exec())
|
||||||
{
|
{
|
||||||
savedPaths[context] = w.directory().absolutePath();
|
savedPaths[context] = w.directory().absolutePath();
|
||||||
return w.getOpenFileNames();
|
return w.selectedFiles();
|
||||||
}
|
}
|
||||||
savedPaths[context] = w.directory().absolutePath();
|
savedPaths[context] = w.directory().absolutePath();
|
||||||
return {};
|
return {};
|
||||||
|
@ -321,7 +321,6 @@ namespace Ui {
|
|||||||
#include <QWidgetAction>
|
#include <QWidgetAction>
|
||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
#include <QShortcut>
|
#include <QShortcut>
|
||||||
#include <QFileDialog>
|
|
||||||
|
|
||||||
#include <MMCZip.h>
|
#include <MMCZip.h>
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "ui_LegacyJarModPage.h"
|
#include "ui_LegacyJarModPage.h"
|
||||||
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
|
||||||
#include <pathutils.h>
|
#include <pathutils.h>
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "ModFolderPage.h"
|
#include "ModFolderPage.h"
|
||||||
#include "ui_ModFolderPage.h"
|
#include "ui_ModFolderPage.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "OtherLogsPage.h"
|
#include "OtherLogsPage.h"
|
||||||
#include "ui_OtherLogsPage.h"
|
#include "ui_OtherLogsPage.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include "GuiUtil.h"
|
#include "GuiUtil.h"
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "MultiMC.h"
|
#include "MultiMC.h"
|
||||||
|
|
||||||
#include <pathutils.h>
|
#include <pathutils.h>
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "MinecraftPage.h"
|
#include "MinecraftPage.h"
|
||||||
#include "ui_MinecraftPage.h"
|
#include "ui_MinecraftPage.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user