mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 22:05:25 +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
|
// Close dialog and open MainWindow/OptionsDialog
|
||||||
MainWindow *main = new MainWindow();
|
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);
|
main->openNewFile(ioFile);
|
||||||
|
|
||||||
close();
|
close();
|
||||||
|
Loading…
Reference in New Issue
Block a user