X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=544d5fd7dc65efee0af1d8d5f7ab194b1a93b291;hb=0e4b70a5cbbb548d6c6d64b56d6db0c53819b3e7;hp=7ea9012bf9ed8fe45e3dd4578234d59160d48237;hpb=77a6f2a3b9389e806cff6777098cf901bef4bf46;p=frida%2Ffrida.git 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();