X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=544d5fd7dc65efee0af1d8d5f7ab194b1a93b291;hp=7ea9012bf9ed8fe45e3dd4578234d59160d48237;hb=85d67be4869bd6a274e009af63fc6955c5e6d37a;hpb=6d0838cec0411286de35e5a22a042d9a3b1eebf7 diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 7ea9012..544d5fd 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -58,9 +58,11 @@ Mainwindow::Mainwindow(InformationManager* mgr) QString fileName = QFileDialog::getOpenFileName(this, tr("Open Script"), "", tr("Binaries") + " (*." + manager->getInterpreter("GUILE")->fileExtension().c_str() + ")"); - std::stringstream a, b; - std::string c; - manager->getInterpreter("GUILE")->loadFile(fileName.toStdString(), a, b, c); + if(! fileName.isNull()) { + std::stringstream a, b; + std::string c; + manager->getInterpreter("GUILE")->loadFile(fileName.toStdString(), a, b, c); + } }); listWidget = new QTreeWidget();