File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -429,16 +429,12 @@ void MainWindow::showBrowserContextMenu(ViewWindow* browser,
429429
430430 if ( !link.isEmpty () )
431431 {
432- m->addAction ( i18n (" Open Link in a new tab\t Shift+LMB" ),
433- [this , link] ()
434- {
435- openPage ( link, UBrowser::OPEN_IN_NEW );
436- });
437- m->addAction ( i18n (" Open Link in a new background tab\t Ctrl+LMB" ),
438- [this , link] ()
439- {
440- openPage ( link, UBrowser::OPEN_IN_BACKGROUND );
441- });
432+ QAction* newTab = m->addAction ( i18n ( " Open Link in a new tab\t Shift+LMB" ) );
433+ connect ( newTab, &QAction::triggered,
434+ [this , link]() { openPage ( link, UBrowser::OPEN_IN_NEW ); } );
435+ QAction* bckgTab = m->addAction ( i18n ( " Open Link in a new background tab\t Ctrl+LMB" ) );
436+ connect ( bckgTab, &QAction::triggered,
437+ [this , link]() { openPage ( link, UBrowser::OPEN_IN_BACKGROUND ); } );
442438 m->addSeparator ();
443439 }
444440
You can’t perform that action at this time.
0 commit comments