Fix "Restart" button putting mcedit2.exe in the args list twice

This commit is contained in:
David Vierra 2017-06-14 20:49:18 -10:00
parent 59f3c0bb92
commit 34fa322c92

View File

@ -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):