diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2009-09-30 07:44:57 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2009-09-30 07:44:57 +0000 |
commit | 51bffa624e5123bf390f53c396fe3bce49b52011 (patch) | |
tree | 1841a9ca3e10da8a5bf8137fa6a17d7cbf29d30c /src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp | |
parent | 73fff694532619dd9811b5bedf6c84da13aa1350 (diff) | |
download | VirtualBox-svn-51bffa624e5123bf390f53c396fe3bce49b52011.tar.gz |
Fe/Qt: About dialog: Fixed text color if no custom.ini was found.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@23425 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp')
-rw-r--r-- | src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp b/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp index 468bc7035da..865c5415548 100644 --- a/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp +++ b/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp @@ -77,9 +77,9 @@ void VBoxAboutDlg::paintEvent (QPaintEvent * /* aEvent */) /* Branding: Set a different text color (because splash also could be white), otherwise use white as default color */ - QColor colorText(vboxGlobal().brandingGetKey("UI/AboutTextColor")); - if (!colorText.name().isEmpty()) - painter.setPen (colorText.name()); + QString sColor = vboxGlobal().brandingGetKey("UI/AboutTextColor"); + if (!sColor.isEmpty()) + painter.setPen (QColor(sColor).name()); else painter.setPen (Qt::white); #if VBOX_OSE |