Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 18, 2024
1 parent addba9d commit 92f7389
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plotjuggler_app/changelog_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</size>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>PlotJuggler</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
Expand Down
13 changes: 7 additions & 6 deletions plotjuggler_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ int main(int argc, char* argv[])

manager.get(request);

MainWindow* w = nullptr;
MainWindow* window = nullptr;

/*
* You, fearless code reviewer, decided to start a journey into my source code.
Expand Down Expand Up @@ -441,24 +441,25 @@ int main(int argc, char* argv[])
app.processEvents();
}

w = new MainWindow(parser);
window = new MainWindow(parser);

deadline = QDateTime::currentDateTime().addMSecs(3000);
while (QDateTime::currentDateTime() < deadline && !splash.isHidden())
{
app.processEvents();
}
}
else

if(!window)
{
w = new MainWindow(parser);
window = new MainWindow(parser);
}

w->show();
window->show();

if (parser.isSet(start_streamer))
{
w->on_buttonStreamingStart_clicked();
window->on_buttonStreamingStart_clicked();
}

return app.exec();
Expand Down

0 comments on commit 92f7389

Please sign in to comment.