Skip to content

Commit

Permalink
Fixed bug where m_manageInstrumentsDialog was not set to null when th…
Browse files Browse the repository at this point in the history
…e dialog was closed, making it impossible to re-open the dialog after closing it once. Fixes #632.
  • Loading branch information
azonenberg committed Nov 20, 2023
1 parent ecc525e commit 1cb68db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ngscopeclient/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,8 @@ void MainWindow::OnDialogClosed(const std::shared_ptr<Dialog>& dlg)
m_graphEditor = nullptr;
if(m_measurementsDialog == dlg)
m_measurementsDialog = nullptr;
if(m_manageInstrumentsDialog == dlg)
m_manageInstrumentsDialog = nullptr;

//Remove the general list
m_dialogs.erase(dlg);
Expand Down

0 comments on commit 1cb68db

Please sign in to comment.