forked from qt-creator/qt-creator
Git: Introduce StashGuard
Offers the user to stash changes (if relevant), stores the results and pops the stash when it goes out of scope (unless disabled) Change-Id: Ibc0d2a5d3e3c953062fb17ecba903ca814524837 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -80,6 +80,8 @@ QString ChangeSelectionDialog::workingDirectory() const
|
||||
|
||||
void ChangeSelectionDialog::setWorkingDirectory(const QString &s)
|
||||
{
|
||||
if (s.isEmpty())
|
||||
return;
|
||||
m_ui.workingDirectoryEdit->setText(QDir::toNativeSeparators(s));
|
||||
m_ui.changeNumberEdit->setFocus(Qt::ActiveWindowFocusReason);
|
||||
m_ui.changeNumberEdit->setText(QLatin1String("HEAD"));
|
||||
|
||||
Reference in New Issue
Block a user