diff options
author | Simon Rettberg | 2015-11-12 17:03:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-11-12 17:03:11 +0100 |
commit | 1c49173c8f62d3b9e609d22a027a42376db5d3de (patch) | |
tree | 2e5559d0435aa5ff784ee58e7dbcc8524a048984 /src/xsession.cpp | |
parent | Add images for win2k, winxp, win8 (diff) | |
download | vmchooser2-1c49173c8f62d3b9e609d22a027a42376db5d3de.tar.gz vmchooser2-1c49173c8f62d3b9e609d22a027a42376db5d3de.tar.xz vmchooser2-1c49173c8f62d3b9e609d22a027a42376db5d3de.zip |
Start refactoring download helpers and icon management
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r-- | src/xsession.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp index 3cd0e7e..3ae4320 100644 --- a/src/xsession.cpp +++ b/src/xsession.cpp @@ -5,6 +5,7 @@ #include <QProcess> #include "xsession.h" +#include "sessionsiconholder.h" void XSession::init(const QString& name, const QString& exec, const QString& comment, const QString& icon) { @@ -86,7 +87,7 @@ int XSession::priority() const { return 0; } -QString XSession::icon() const { +QIcon XSession::icon() const { QString icon(this->icon_); if (icon.isEmpty()) { @@ -105,7 +106,7 @@ QString XSession::icon() const { } } - return icon; + return SessionsIconHolder::get()->getIcon(icon); } bool XSession::run() const { |