forked from qt-creator/qt-creator
Git: Fix object leaks
Change-Id: I0efb368782ffb66cf6b8d39650fe7840c5ef2501 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f7ac7fb241
commit
c60ab1ca3c
@@ -130,16 +130,16 @@ void ChangeSelectionDialog::selectCommitFromRecentHistory()
|
||||
int tilde = commit.indexOf(QLatin1Char('~'));
|
||||
if (tilde != -1)
|
||||
commit.truncate(tilde);
|
||||
QPointer<LogChangeDialog> dialog = new LogChangeDialog(false);
|
||||
dialog->setWindowTitle(tr("Select Commit"));
|
||||
LogChangeDialog dialog(false, this);
|
||||
dialog.setWindowTitle(tr("Select Commit"));
|
||||
|
||||
dialog->runDialog(workingDir, commit);
|
||||
dialog.runDialog(workingDir, commit);
|
||||
|
||||
if (dialog->result() == QDialog::Rejected || dialog->commitIndex() == -1)
|
||||
if (dialog.result() == QDialog::Rejected || dialog.commitIndex() == -1)
|
||||
return;
|
||||
|
||||
if (dialog->commitIndex() > 0)
|
||||
commit += QLatin1Char('~') + QString::number(dialog->commitIndex());
|
||||
if (dialog.commitIndex() > 0)
|
||||
commit += QLatin1Char('~') + QString::number(dialog.commitIndex());
|
||||
|
||||
m_changeNumberEdit->setText(commit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user