Commit 4a7a1214 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Git: Avoid running unnecessary git commands

Change-Id: I09d6ac15a53e29a7a916be4b80ff2b99372eb079
Reviewed-on: http://codereview.qt.nokia.com/219

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 7d573006
......@@ -168,10 +168,15 @@ bool RemoteModel::setData(const QModelIndex &index, const QVariant &value, int r
return false;
const QString name = remoteName(index.row());
const QString url = remoteUrl(index.row());
switch (index.column()) {
case 0:
if (name == value.toString())
return true;
return renameRemote(name, value.toString());
case 1:
if (url == value.toString())
return true;
return updateUrl(name, value.toString());
default:
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment