Skip to content

Commit d679824

Browse files
committed
[ux] Auto dismiss message bar items when a link is clicked in the item
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.
1 parent 124f738 commit d679824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/qgsmessagebaritem.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,5 @@ void QgsMessageBarItem::urlClicked( const QUrl &url )
284284
QgsGui::instance()->nativePlatformInterface()->openFileExplorerAndSelectFile( url.toLocalFile() );
285285
else
286286
QDesktopServices::openUrl( url );
287+
dismiss();
287288
}

0 commit comments

Comments
 (0)