summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/detect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/detect.cpp')
-rw-r--r--rbutil/rbutilqt/base/detect.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/detect.cpp b/rbutil/rbutilqt/base/detect.cpp
index 74068618f6..df1cf50647 100644
--- a/rbutil/rbutilqt/base/detect.cpp
+++ b/rbutil/rbutilqt/base/detect.cpp
@@ -401,12 +401,13 @@ QString Detect::check(RbSettings* settings, bool permission)
401 } 401 }
402 402
403 // Check TargetId 403 // Check TargetId
404 QString installed = installedTarget(settings->mountpoint()); 404 QString installed = installedTarget(settings->value(RbSettings::Mountpoint).toString());
405 if(!installed.isEmpty() && installed != settings->curConfigure_Modelname()) 405 if(!installed.isEmpty() && installed != settings->value(RbSettings::CurConfigureModel).toString())
406 { 406 {
407 text += QObject::tr("<li>Target mismatch detected.\n" 407 text += QObject::tr("<li>Target mismatch detected.\n"
408 "Installed target: %1, selected target: %2.</li>") 408 "Installed target: %1, selected target: %2.</li>")
409 .arg(installed, settings->curName()); 409 .arg(installed, settings->value(RbSettings::CurPlatformName).toString());
410 // FIXME: replace installed by human-friendly name
410 } 411 }
411 412
412 if(!text.isEmpty()) 413 if(!text.isEmpty())