Skip to content

Commit

Permalink
scide: main window - use more expressive slot name for opening recent…
Browse files Browse the repository at this point in the history
… docs
  • Loading branch information
timblechmann committed Aug 21, 2014
1 parent 6cf60c3 commit d92d2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions editors/sc-ide/widgets/main_window.cpp
Expand Up @@ -534,7 +534,7 @@ void MainWindow::createMenus()
menu->addAction( mActions[DocOpen] );
mRecentDocsMenu = menu->addMenu(tr("Open Recent", "Open a recent document"));
connect(mRecentDocsMenu, SIGNAL(triggered(QAction*)),
this, SLOT(onRecentDocAction(QAction*)));
this, SLOT(onOpenRecentDocument(QAction*)));
menu->addAction( mActions[DocOpenStartup] );
menu->addAction( mActions[DocOpenSupportDir] );
menu->addAction( mActions[DocSave] );
Expand Down Expand Up @@ -885,7 +885,7 @@ void MainWindow::updateRecentDocsMenu()
}
}

void MainWindow::onRecentDocAction( QAction *action )
void MainWindow::onOpenRecentDocument( QAction *action )
{
mMain->documentManager()->open(action->text());
}
Expand Down
2 changes: 1 addition & 1 deletion editors/sc-ide/widgets/main_window.hpp
Expand Up @@ -170,7 +170,7 @@ private Q_SLOTS:
void onDocumentChangedExternally( Document * );
void onDocDialogFinished();
void updateRecentDocsMenu();
void onRecentDocAction( QAction * );
void onOpenRecentDocument( QAction * );
void onOpenSessionAction( QAction * );
void updateWindowTitle();
void toggleFullScreen();
Expand Down

0 comments on commit d92d2b3

Please sign in to comment.