mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix empty IO
This commit is contained in:
parent
6f19e8c225
commit
a84b703559
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user