diff options
author | hjk <hjk@qt.io> | 2021-03-19 14:46:09 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-03-19 13:51:27 +0000 |
commit | 8d6cb35b745176604330b9663f3ef551e87e7f3c (patch) | |
tree | 235a63aec2be1aadd3dc5a02cdd7f1747dc8f1a7 /src/plugins/git | |
parent | aa69415ac780db4789aa36033b5a1fd0d9c6a2fa (diff) | |
download | qt-creator-8d6cb35b745176604330b9663f3ef551e87e7f3c.tar.gz |
Git: Remove note in settings dialog that does not apply anymore
Change-Id: I54e86ad419c09acc7ebd15bb4b2660d159c410f0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/gitsettings.cpp | 12 | ||||
-rw-r--r-- | src/plugins/git/gitsettings.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/git/gitsettings.cpp b/src/plugins/git/gitsettings.cpp index 8a16b905a9..874fb4828d 100644 --- a/src/plugins/git/gitsettings.cpp +++ b/src/plugins/git/gitsettings.cpp @@ -132,18 +132,6 @@ GitSettings::GitSettings() refLogShowDate.setSettingsKey("RefLogShowDate"); timeout.setDefaultValue(Utils::HostOsInfo::isWindowsHost() ? 60 : 30); - - note.setText(tr("<b>Note:</b>") + tr("Git needs to find Perl in the environment.")); - - const auto updateNoteField = [this] { - Environment env = Environment::systemEnvironment(); - env.prependOrSetPath(path.value()); - const bool showNote = env.searchInPath("perl").isEmpty(); - note.setVisible(showNote); - }; - - updateNoteField(); - QObject::connect(&path, &BaseAspect::changed, ¬e, updateNoteField); } FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const diff --git a/src/plugins/git/gitsettings.h b/src/plugins/git/gitsettings.h index c991791663..5e06c52f46 100644 --- a/src/plugins/git/gitsettings.h +++ b/src/plugins/git/gitsettings.h @@ -63,7 +63,6 @@ public: Utils::BoolAspect followRenames; Utils::IntegerAspect lastResetIndex; Utils::BoolAspect refLogShowDate; - Utils::TextDisplay note; Utils::FilePath gitExecutable(bool *ok = nullptr, QString *errorMessage = nullptr) const; }; |