Skip to content

Commit

Permalink
fix for linux gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-giddins committed Jan 31, 2021
1 parent 50e0e52 commit 6602774
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/SubWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ SubWindow::SubWindow( QWidget *parent, Qt::WindowFlags windowFlags ) :
m_systemMenu = systemMenu();

// create 'close all' action
m_closeAllAction = new QAction();
m_closeAllAction->setText("Close all");
m_closeAllAction = new QAction("Close all", this);
m_closeAllAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_W));
// connect action to SignalSender
connect(m_closeAllAction, SIGNAL(triggered()), SignalSender::getInstance(), SLOT(closeAll()));
Expand All @@ -125,8 +124,7 @@ SubWindow::SubWindow( QWidget *parent, Qt::WindowFlags windowFlags ) :
m_systemMenu->addAction(m_closeAllAction);

// create 'close others' action
m_closeOthersAction = new QAction();
m_closeOthersAction->setText("Close others");
m_closeOthersAction = new QAction("Close others", this);
m_closeOthersAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Q));
// connect action to signal emit
connect(m_closeOthersAction, SIGNAL(triggered()), this, SLOT(closeOthersEmit()));
Expand Down

0 comments on commit 6602774

Please sign in to comment.