Skip to content

Commit

Permalink
Unneccessary open slot removed from gatelib manager
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Sep 20, 2024
1 parent eaa961d commit 6ec558a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ namespace hal
void handleOkClicked();

void handleCreateAction();
void handleOpenAction();
void handleSaveAction();
void handleSaveAsAction();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ namespace hal
// TODO
}

void GateLibraryManager::handleOpenAction()
{
if(gFileStatusManager->isGatelibModified())
{
if(callUnsavedChangesWindow()) return;
}
initialize(nullptr, false);
}

void GateLibraryManager::handleSaveAction()
{
mContentWidget->handleSaveAction();
Expand Down
2 changes: 1 addition & 1 deletion plugins/gui/src/main_window/file_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace hal {
mActionSave->setText("Save Gate Libraray");
mActionSaveAs->setText("Save Gate Library As");
connect(mActionCreate, &Action::triggered, mGatelibReference, &GateLibraryManager::handleCreateAction);
connect(mActionOpen, &Action::triggered, mGatelibReference, &GateLibraryManager::handleOpenAction);
connect(mActionOpen, &Action::triggered, mMainWindowReference, &MainWindow::handleActionGatelibraryManager);
connect(mActionSave, &Action::triggered, mGatelibReference, &GateLibraryManager::handleSaveAction);
connect(mActionSaveAs, &Action::triggered, mGatelibReference, &GateLibraryManager::handleSaveAsAction);
mActionSave->setEnabled(gFileStatusManager->isGatelibModified());
Expand Down

0 comments on commit 6ec558a

Please sign in to comment.