summaryrefslogtreecommitdiff
path: root/src/plugins/git/remotedialog.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-05-26 22:34:22 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-06-07 11:35:07 +0200
commitc54575e670fa6de8f8ba6450d6fa7278ae0627e7 (patch)
treec29f1795295567e5e5346d22c123334a0412751c /src/plugins/git/remotedialog.cpp
parent4a7a12143652e88cbf876727be8c1a249a54b0ed (diff)
downloadqt-creator-c54575e670fa6de8f8ba6450d6fa7278ae0627e7.tar.gz
Git: remote dialog improvements
* Add shortcuts * Add refresh button Change-Id: Idfe5c86459d654ea75fb90542eaa4d9cc1405d33 Reviewed-on: http://codereview.qt.nokia.com/220 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/git/remotedialog.cpp')
-rw-r--r--src/plugins/git/remotedialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/git/remotedialog.cpp b/src/plugins/git/remotedialog.cpp
index 4f2efcee4a..b666abddaa 100644
--- a/src/plugins/git/remotedialog.cpp
+++ b/src/plugins/git/remotedialog.cpp
@@ -103,6 +103,7 @@ RemoteDialog::RemoteDialog(QWidget *parent) :
connect(m_ui->addButton, SIGNAL(clicked()), this, SLOT(addRemote()));
connect(m_ui->fetchButton, SIGNAL(clicked()), this, SLOT(fetchFromRemote()));
connect(m_ui->removeButton, SIGNAL(clicked()), this, SLOT(removeRemote()));
+ connect(m_ui->refreshButton, SIGNAL(clicked()), this, SLOT(refreshRemotes()));
}
RemoteDialog::~RemoteDialog()
@@ -126,6 +127,11 @@ void RemoteDialog::refresh(const QString &repository, bool force)
}
}
+void RemoteDialog::refreshRemotes()
+{
+ refresh(m_remoteModel->workingDirectory(), true);
+}
+
void RemoteDialog::addRemote()
{
if (!m_addDialog)