diff --git a/qucs/extsimkernels/ngspice.cpp b/qucs/extsimkernels/ngspice.cpp index 450a9051..a9a63287 100644 --- a/qucs/extsimkernels/ngspice.cpp +++ b/qucs/extsimkernels/ngspice.cpp @@ -123,15 +123,17 @@ void Ngspice::createNetlist(QTextStream &stream, int , stream << "\n.control\n\n"; //execute simulations - if (!QucsMain->ProjName.isEmpty()) { - // always load osdi from the project directory - QStringList osdi_ext; - osdi_ext<<"*.osdi"; - QStringList osdi_files = QucsSettings.QucsWorkDir.entryList(osdi_ext,QDir::Files); - for(const auto &file : osdi_files) { - QString abs_file = QucsSettings.QucsWorkDir.absolutePath() + - QDir::separator() + file; - stream<ProjName.isEmpty()) { + // always load osdi from the project directory + QStringList osdi_ext; + osdi_ext<<"*.osdi"; + QStringList osdi_files = QucsSettings.QucsWorkDir.entryList(osdi_ext,QDir::Files); + for(const auto &file : osdi_files) { + QString abs_file = QucsSettings.QucsWorkDir.absolutePath() + + QDir::separator() + file; + stream<