NOISSUE hide main toolbar toggle action instead of working around it
This commit is contained in:
parent
6fde775b90
commit
2eec1df1a0
2 changed files with 10 additions and 9 deletions
|
@ -828,6 +828,13 @@ MainWindow::~MainWindow()
|
|||
{
|
||||
}
|
||||
|
||||
QMenu * MainWindow::createPopupMenu()
|
||||
{
|
||||
QMenu* filteredMenu = QMainWindow::createPopupMenu();
|
||||
filteredMenu->removeAction( ui->mainToolBar->toggleViewAction() );
|
||||
return filteredMenu;
|
||||
}
|
||||
|
||||
void MainWindow::konamiTriggered()
|
||||
{
|
||||
// ENV.enableFeature("NewModsPage");
|
||||
|
@ -1654,13 +1661,6 @@ void MainWindow::on_actionAbout_triggered()
|
|||
dialog.exec();
|
||||
}
|
||||
|
||||
void MainWindow::on_mainToolBar_visibilityChanged(bool)
|
||||
{
|
||||
// Don't allow hiding the main toolbar.
|
||||
// This is the only way I could find to prevent it... :/
|
||||
ui->mainToolBar->setVisible(true);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDeleteInstance_triggered()
|
||||
{
|
||||
if (!m_selectedInstance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue