Skip to content

Commit

Permalink
remove enable/disable newProjectAction for mainwindow, because it bri…
Browse files Browse the repository at this point in the history
…ngs inconsistent behaviour for some scenarios
  • Loading branch information
w0lek committed Sep 22, 2023
1 parent 6572855 commit 146e0db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/MainWindow/main_window_ql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ void MainWindow::closeProject(bool force) {
newProjdialog->Reset();
CloseOpenedTabs();
m_showWelcomePage ? showWelcomePage() : ReShowWindow({});
newProjectAction->setEnabled(true);
setStatusAndProgressText(QString{});
}
}
Expand Down Expand Up @@ -1404,7 +1403,6 @@ void MainWindow::ipConfiguratorActionTriggered() {
void MainWindow::newDialogAccepted() {
if (newProjdialog->GetMode() == Mode::NewProject) {
const QString strproject = newProjdialog->getProject();
newProjectAction->setEnabled(false);
ReShowWindow(strproject);
} else {
sourcesForm->UpdateSrcHierachyTree();
Expand Down

0 comments on commit 146e0db

Please sign in to comment.