From a84b703559a309988c8d69c37e22c1db744be750 Mon Sep 17 00:00:00 2001 From: xarkes Date: Sat, 7 Jul 2018 11:57:04 +0200 Subject: [PATCH] Fix empty IO --- src/dialogs/NewFileDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dialogs/NewFileDialog.cpp b/src/dialogs/NewFileDialog.cpp index 97991847..5ca35a5e 100644 --- a/src/dialogs/NewFileDialog.cpp +++ b/src/dialogs/NewFileDialog.cpp @@ -340,7 +340,11 @@ void NewFileDialog::loadFile(const QString &filename) // Close dialog and open MainWindow/OptionsDialog MainWindow *main = new MainWindow(); - QString ioFile = ui->ioPlugin->currentText() + "://" + filename; + QString ioFile = ""; + if (ui->ioPlugin->currentIndex()) { + ioFile = ui->ioPlugin->currentText() + "://"; + } + ioFile += filename; main->openNewFile(ioFile); close();