From 76100783af55297a81dca0545be8c6c93bcebdd3 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 15 Aug 2009 21:29:31 +0000 Subject: Improve notification about unsupported players. - Display the name of a detected unsupported player when running autodetection from the configuration window. - Extend the list of known-unsupported players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22334 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/configure.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'rbutil/rbutilqt/configure.cpp') diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 43406c00e7..857242a60c 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp @@ -588,14 +588,12 @@ void Config::autodetect() } if(!detector.incompatdev().isEmpty()) { QString text; - // we need to set the platform here to get the brand from the - // settings object - RbSettings::setValue(RbSettings::Platform, detector.incompatdev()); - text = tr("Detected an unsupported %1 player variant. Sorry, " - "Rockbox doesn't run on your player.") - .arg(RbSettings::value(RbSettings::CurBrand).toString()); - - QMessageBox::critical(this, tr("Fatal error: incompatible player found"), + text = tr("Detected an unsupported player:\n%1\n" + "Sorry, Rockbox doesn't run on your player.") + .arg(RbSettings::platformValue(detector.incompatdev(), + RbSettings::CurName).toString()); + + QMessageBox::critical(this, tr("Fatal: player incompatible"), text, QMessageBox::Ok); return; } -- cgit v1.2.3