Skip to content

Commit 598facb

Browse files
committed
Fix for weird 6.4 crash
1 parent 1d16e1d commit 598facb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Interface/Application/GuiCommands.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,16 @@ bool NetworkFileProcessCommand::execute()
192192
if (file)
193193
{
194194
auto load = [this, file] { return guiProcess(file); };
195-
if (Application::Instance().parameters()->isRegressionMode())
195+
if (Application::Instance().parameters()->isRegressionMode() || std::string(qVersion()) > "6.4")
196196
{
197197
load();
198198
}
199199
else
200200
{
201201
const int numModules = static_cast<int>(file->network.modules.size());
202202
QProgressDialog progress("Loading network " + (tempFile ? "" : QString::fromStdString(filename)), QString(), 0, numModules + 1, SCIRunMainWindow::Instance());
203-
QObject::connect(networkEditor_->getNetworkEditorController().get(), &NetworkEditorControllerGuiProxy::networkDoneLoading, &progress, &QProgressDialog::setValue);
203+
QObject::connect(networkEditor_->getNetworkEditorController().get(), &NetworkEditorControllerGuiProxy::networkDoneLoading,
204+
&progress, &QProgressDialog::setValue);
204205
progress.setWindowModality(Qt::WindowModal);
205206
progress.show();
206207
progress.setValue(0);

0 commit comments

Comments
 (0)