diff options
author | Simon Rettberg | 2015-09-15 18:00:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-15 18:00:35 +0200 |
commit | 7c5b0e7ee1bb48672d69deccd2288372de481e34 (patch) | |
tree | 1b00e6f6d373fdec15c942564b1184b5a7a95954 /src/vsession.cpp | |
parent | Add msdos icon (diff) | |
download | vmchooser2-7c5b0e7ee1bb48672d69deccd2288372de481e34.tar.gz vmchooser2-7c5b0e7ee1bb48672d69deccd2288372de481e34.tar.xz vmchooser2-7c5b0e7ee1bb48672d69deccd2288372de481e34.zip |
Make default icon determination smarter
Diffstat (limited to 'src/vsession.cpp')
-rw-r--r-- | src/vsession.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp index 7656868..5cd9d0b 100644 --- a/src/vsession.cpp +++ b/src/vsession.cpp @@ -39,13 +39,7 @@ void VSession::addNodeWithAttribute(const QString& nodeName, } QString VSession::icon() const { - QString icon(getAttribute("icon")); - if (icon.isEmpty()) { - if (imgtype() == VMWARE) icon = "vmware"; - else if (imgtype() == VBOX) icon = "virtualbox"; - else icon = "none"; - } - return icon; + return getAttribute("icon"); } QString VSession::toXml() const { |