forked from qt-creator/qt-creator
Git - added ability to launch git gui
Change-Id: I65ed3e0408e43e354a289bbbd385aec2e254746c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -2576,6 +2576,19 @@ bool GitClient::tryLauchingGitK(const QProcessEnvironment &env,
|
||||
return success;
|
||||
}
|
||||
|
||||
bool GitClient::launchGitGui(const QString &workingDirectory) {
|
||||
bool success;
|
||||
QString gitBinary = gitBinaryPath(&success);
|
||||
if (success)
|
||||
success = QProcess::startDetached(gitBinary, QStringList(QLatin1String("gui")),
|
||||
workingDirectory);
|
||||
|
||||
if (!success)
|
||||
outputWindow()->appendError(tr("Cannot launch git gui"));
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
QString GitClient::gitBinaryPath(bool *ok, QString *errorMessage) const
|
||||
{
|
||||
return settings()->gitBinaryPath(ok, errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user