Fix empty IO

This commit is contained in:
xarkes 2018-07-07 11:57:04 +02:00
parent 6f19e8c225
commit a84b703559

View File

@ -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();