forked from qt-creator/qt-creator
Git - ChangeSelectionDialog select from recent history
Change-Id: Ib87f9bd997a5c7c07abfd56a05d9e454c1a9ea93 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -113,6 +113,14 @@ QString LogChangeDialog::commit() const
|
||||
return QString();
|
||||
}
|
||||
|
||||
int LogChangeDialog::commitIndex() const
|
||||
{
|
||||
const QModelIndex currentIndex = m_treeView->selectionModel()->currentIndex();
|
||||
if (currentIndex.isValid())
|
||||
return currentIndex.row();
|
||||
return -1;
|
||||
}
|
||||
|
||||
QString LogChangeDialog::resetFlag() const
|
||||
{
|
||||
if (!m_resetTypeComboBox)
|
||||
|
||||
Reference in New Issue
Block a user