forked from qt-creator/qt-creator
VCS: Simplify submit editor accept/close flow
* Replace message box with an error on the output pane. * Separate logic for accept and close. Change-Id: Ib9fa201a1a67ee195086f7a22bc6678a9642452a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
aa33927651
commit
d63bfa4a29
@@ -184,7 +184,7 @@ public:
|
||||
// String -> repository, StringList -> files
|
||||
void changed(const QVariant &);
|
||||
void updateActions(VcsBase::VcsBasePluginPrivate::ActionState) final;
|
||||
bool submitEditorAboutToClose() final;
|
||||
bool activateCommit() final;
|
||||
|
||||
// File menu action slots
|
||||
void addCurrentFile();
|
||||
@@ -784,7 +784,7 @@ void BazaarPluginPrivate::uncommit()
|
||||
m_client.synchronousUncommit(state.topLevel(), dialog.revision(), dialog.extraOptions());
|
||||
}
|
||||
|
||||
bool BazaarPluginPrivate::submitEditorAboutToClose()
|
||||
bool BazaarPluginPrivate::activateCommit()
|
||||
{
|
||||
auto commitEditor = qobject_cast<CommitEditor *>(submitEditor());
|
||||
QTC_ASSERT(commitEditor, return true);
|
||||
|
||||
Reference in New Issue
Block a user