forked from qt-creator/qt-creator
Git: Remove redundant null validations
Change-Id: I6977b7c7633191d768c39d0bfff43c8aedecae9d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e8d6ce1c22
commit
5125a47955
@@ -208,7 +208,7 @@ void BranchDialog::checkout()
|
|||||||
!branchCheckoutDialog.hasStashForNextBranch()) {
|
!branchCheckoutDialog.hasStashForNextBranch()) {
|
||||||
// No local changes and no Auto Stash - no need to open dialog
|
// No local changes and no Auto Stash - no need to open dialog
|
||||||
m_model->checkoutBranch(idx);
|
m_model->checkoutBranch(idx);
|
||||||
} else if (branchCheckoutDialog.exec() == QDialog::Accepted && m_model) {
|
} else if (branchCheckoutDialog.exec() == QDialog::Accepted) {
|
||||||
|
|
||||||
if (branchCheckoutDialog.makeStashOfCurrentBranch()) {
|
if (branchCheckoutDialog.makeStashOfCurrentBranch()) {
|
||||||
if (gitClient->synchronousStash(m_repository,
|
if (gitClient->synchronousStash(m_repository,
|
||||||
@@ -292,7 +292,7 @@ void BranchDialog::rename()
|
|||||||
|
|
||||||
branchAddDialog.exec();
|
branchAddDialog.exec();
|
||||||
|
|
||||||
if (branchAddDialog.result() == QDialog::Accepted && m_model) {
|
if (branchAddDialog.result() == QDialog::Accepted) {
|
||||||
if (branchAddDialog.branchName() == oldName)
|
if (branchAddDialog.branchName() == oldName)
|
||||||
return;
|
return;
|
||||||
if (isTag)
|
if (isTag)
|
||||||
|
|||||||
Reference in New Issue
Block a user