summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2009-09-30 07:44:57 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2009-09-30 07:44:57 +0000
commit51bffa624e5123bf390f53c396fe3bce49b52011 (patch)
tree1841a9ca3e10da8a5bf8137fa6a17d7cbf29d30c /src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
parent73fff694532619dd9811b5bedf6c84da13aa1350 (diff)
downloadVirtualBox-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.cpp6
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