diff options
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 61d3d7e457..8361d7e45e 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp @@ -534,6 +534,18 @@ void Config::autodetect() QMessageBox::critical(this, tr("Fatal error"), text, QMessageBox::Ok); return; } + if(!detector.incompatdev().isEmpty()) { + QString text; + // we need to set the platform here to get the brand from the + // settings object + settings->setCurPlatform(detector.incompatdev()); + text = tr("Detected an unsupported %1 player variant. Sorry, " + "Rockbox doesn't run on your player.").arg(settings->curBrand()); + + QMessageBox::critical(this, tr("Fatal error: incompatible player found"), + text, QMessageBox::Ok); + return; + } if(detector.getMountPoint() != "" ) { |