Skip to content

Commit

Permalink
Remove empty context menu from toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
weslly committed Nov 27, 2017
1 parent 54d5007 commit 525d5de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ MainWindow::MainWindow()
{
m_ui->setupUi(this);

m_ui->toolBar->setContextMenuPolicy(Qt::PreventContextMenu);

// Setup the search widget in the toolbar
SearchWidget *search = new SearchWidget();
search->connectSignals(m_actionMultiplexer);
Expand Down Expand Up @@ -822,11 +824,6 @@ void MainWindow::showGroupContextMenu(const QPoint& globalPos)
m_ui->menuGroups->popup(globalPos);
}

void MainWindow::saveToolbarState(bool value)
{
config()->set("ShowToolbar", value);
}

void MainWindow::setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback)
{
if (!QKeySequence::keyBindings(standard).isEmpty()) {
Expand Down
1 change: 0 additions & 1 deletion src/gui/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ private slots:
void updateCopyAttributesMenu();
void showEntryContextMenu(const QPoint& globalPos);
void showGroupContextMenu(const QPoint& globalPos);
void saveToolbarState(bool value);
void rememberOpenDatabases(const QString& filePath);
void applySettingsChanges();
void trayIconTriggered(QSystemTrayIcon::ActivationReason reason);
Expand Down

0 comments on commit 525d5de

Please sign in to comment.