From 591632121a1e74e61a83c3a15e0909ef9e685ef8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 7 Jan 2021 13:21:12 +0000 Subject: some code optimization git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9617 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/library.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/General/library/library.cpp') diff --git a/src/plugins/General/library/library.cpp b/src/plugins/General/library/library.cpp index 7d9c92365..7f4db5f82 100644 --- a/src/plugins/General/library/library.cpp +++ b/src/plugins/General/library/library.cpp @@ -60,8 +60,7 @@ Library::Library(QObject *parent) : QObject(parent) QSettings settings(Qmmp::configFile(), QSettings::IniFormat); m_dirs = settings.value("Library/dirs").toStringList(); - QAction *action = new QAction(tr("Update library"), this); - action->setIcon(QIcon::fromTheme("view-refresh")); + QAction *action = new QAction(QIcon::fromTheme("view-refresh"), tr("Update library"), this); UiHelper::instance()->addAction(action, UiHelper::TOOLS_MENU); connect(action, SIGNAL(triggered()), SLOT(startDirectoryScanning())); } -- cgit v1.2.3-13-gbd6f