diff options
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index acd68aa52d..7416a55ccb 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -734,9 +734,23 @@ void Config::autodetect() | |||
734 | this->unsetCursor(); | 734 | this->unsetCursor(); |
735 | if(detected.size() > 1) { | 735 | if(detected.size() > 1) { |
736 | // FIXME: handle multiple found players. | 736 | // FIXME: handle multiple found players. |
737 | QMessageBox::information(this, tr("Device Detection"), | 737 | QString msg; |
738 | tr("Multiple devices have been detected. Please disconnect " | 738 | msg = tr("Multiple devices have been detected. Please disconnect " |
739 | "all players but one and try again.")); | 739 | "all players but one and try again."); |
740 | msg += "<br/>"; | ||
741 | msg += tr("Detected devices:"); | ||
742 | msg += "<ul>"; | ||
743 | for(int i = 0; i < detected.size(); ++i) { | ||
744 | msg += QString("<li>%1</li>").arg( | ||
745 | SystemInfo::platformValue(detected.at(i).device, | ||
746 | SystemInfo::CurPlatformName).toString()); | ||
747 | } | ||
748 | msg += "</ul>"; | ||
749 | msg += tr("Note: detecting connected devices might be ambiguous. " | ||
750 | "You might have less devices connected than listed. " | ||
751 | "In this case it might not be possible to detect your " | ||
752 | "player unambiguously."); | ||
753 | QMessageBox::information(this, tr("Device Detection"), msg); | ||
740 | ui.treeDevices->setEnabled(true); | 754 | ui.treeDevices->setEnabled(true); |
741 | } | 755 | } |
742 | else if(detected.size() == 0) { | 756 | else if(detected.size() == 0) { |