diff options
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index 4125c17205..623dfebe2f 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp | |||
@@ -164,9 +164,7 @@ QString findExecutable(QString name) | |||
164 | 164 | ||
165 | 165 | ||
166 | /** @brief checks different Enviroment things. Ask if user wants to continue. | 166 | /** @brief checks different Enviroment things. Ask if user wants to continue. |
167 | * @param settings A pointer to rbutils settings class | ||
168 | * @param permission if it should check for permission | 167 | * @param permission if it should check for permission |
169 | * @param targetId the targetID to check for. if it is -1 no check is done. | ||
170 | * @return string with error messages if problems occurred, empty strings if none. | 168 | * @return string with error messages if problems occurred, empty strings if none. |
171 | */ | 169 | */ |
172 | QString check(bool permission) | 170 | QString check(bool permission) |
@@ -188,7 +186,8 @@ QString check(bool permission) | |||
188 | // Check TargetId | 186 | // Check TargetId |
189 | RockboxInfo rbinfo(RbSettings::value(RbSettings::Mountpoint).toString()); | 187 | RockboxInfo rbinfo(RbSettings::value(RbSettings::Mountpoint).toString()); |
190 | QString installed = rbinfo.target(); | 188 | QString installed = rbinfo.target(); |
191 | if(!installed.isEmpty() && installed != SystemInfo::value(SystemInfo::CurConfigureModel).toString()) | 189 | if(!installed.isEmpty() && installed != |
190 | SystemInfo::value(SystemInfo::CurConfigureModel).toString()) | ||
192 | { | 191 | { |
193 | text += QObject::tr("<li>Target mismatch detected.\n" | 192 | text += QObject::tr("<li>Target mismatch detected.\n" |
194 | "Installed target: %1, selected target: %2.</li>") | 193 | "Installed target: %1, selected target: %2.</li>") |