Commit 132f0e2b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Git: Update details when working directory is changed

Change-Id: I48436f6c5a44a9c41e18b60e2e2c7c4204645528
Reviewed-by: default avatarPetar Perisin <petar.perisin@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 095b7fc2
......@@ -60,7 +60,8 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, QW
m_gitEnvironment = GitPlugin::instance()->gitClient()->processEnvironment();
connect(m_ui.changeNumberEdit, SIGNAL(textChanged(QString)),
this, SLOT(recalculateDetails(QString)));
recalculateDetails(m_ui.changeNumberEdit->text());
connect(m_ui.workingDirectoryEdit, SIGNAL(textChanged(QString)), this, SLOT(refresh()));
refresh();
}
ChangeSelectionDialog::~ChangeSelectionDialog()
......@@ -140,5 +141,10 @@ void ChangeSelectionDialog::recalculateDetails(const QString &ref)
m_ui.detailsText->setPlainText(tr("Fetching commit data..."));
}
void ChangeSelectionDialog::refresh()
{
recalculateDetails(m_ui.changeNumberEdit->text());
}
} // Internal
} // Git
......@@ -57,6 +57,7 @@ public slots:
private slots:
void setDetails(int exitCode);
void recalculateDetails(const QString &ref);
void refresh();
private:
Ui_ChangeSelectionDialog m_ui;
......
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