summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-20 02:29:36 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-20 02:29:36 +0200
commitbbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2 (patch)
treedbcb9dc6e2858b9e6b59f3a11098e38b3092ff75 /gui/mainwindow.cpp
parentc92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d (diff)
downloadMultiMC-bbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2.tar
MultiMC-bbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2.tar.gz
MultiMC-bbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2.tar.lz
MultiMC-bbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2.tar.xz
MultiMC-bbc47cb8bdaea8fd9855e3e06b7607a7d15f3ef2.zip
Sync, removal of webkit as a dependency, removal of the web windows.
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index ba7e135c..97e60658 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -40,7 +40,6 @@
#include "gui/newinstancedialog.h"
#include "gui/logindialog.h"
#include "gui/taskdialog.h"
-#include "gui/browserdialog.h"
#include "gui/aboutdialog.h"
#include "gui/versionselectdialog.h"
#include "gui/lwjglselectdialog.h"
@@ -366,13 +365,13 @@ void MainWindow::on_actionViewSelectedInstFolder_triggered()
void MainWindow::on_actionEditInstMods_triggered()
{
- //TODO: Needs to do current ModEditDialog too
BaseInstance* inst = selectedInstance();
if (inst)
{
auto dialog = inst->createModEditDialog(this);
if(dialog)
dialog->exec();
+ dialog->deleteLater();
}
}
@@ -527,10 +526,7 @@ void MainWindow::on_actionMakeDesktopShortcut_triggered()
// BrowserDialog
void MainWindow::openWebPage ( QUrl url )
{
- BrowserDialog *browser = new BrowserDialog ( this );
-
- browser->load ( url );
- browser->exec();
+ QDesktopServices::openUrl(url);
}
void MainWindow::on_actionChangeInstMCVersion_triggered()