Skip to content

Commit

Permalink
[ux] Auto dismiss message bar items when a link is clicked in the item
Browse files Browse the repository at this point in the history
At this stage the user has already read and acted upon the notification,
so requiring them to explicity dismiss the notification is an
annoying extra action.
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 124f738 commit d679824
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmessagebaritem.cpp
Expand Up @@ -284,4 +284,5 @@ void QgsMessageBarItem::urlClicked( const QUrl &url )
QgsGui::instance()->nativePlatformInterface()->openFileExplorerAndSelectFile( url.toLocalFile() );
else
QDesktopServices::openUrl( url );
dismiss();
}

0 comments on commit d679824

Please sign in to comment.