From 34fa322c92f07083f4a121cc53f4bfd48d25fc09 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 14 Jun 2017 20:49:18 -1000 Subject: [PATCH] Fix "Restart" button putting mcedit2.exe in the args list twice --- src/mcedit2/dialogs/error_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcedit2/dialogs/error_dialog.py b/src/mcedit2/dialogs/error_dialog.py index 6637846..fc38872 100644 --- a/src/mcedit2/dialogs/error_dialog.py +++ b/src/mcedit2/dialogs/error_dialog.py @@ -127,7 +127,7 @@ class ErrorDialog(QtGui.QDialog, Ui_errorDialog): self.copyToPastebinLabel.setText(self.tr("Pastebin URL copied to clipboard!")) def restartMCEdit(self): - QtCore.QProcess.startDetached(sys.executable, sys.argv) + QtCore.QProcess.startDetached(sys.executable, sys.argv[1:]) raise SystemExit def quitMCEdit(self):