Valgrind: Fix cyclic connect

Editing the widget triggers rawPathChanged(), which calls
setValgrindExecutable, which emits valgrindExecutableChanged(), which calls
setPath on the widget.

No other path reaches any of these functions.

This causes the cursor to jump to the end, so if you want to change
'valgrind' to '/usr/local/bin/valgrind' you have to jump back after each
character.

Removed the now unused signal.

Change-Id: Iaf4e902fb9a42975e9ada6662b7a64e53fab5cad
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2017-11-16 20:41:58 +02:00
committed by Orgad Shaneh
parent a02ee529ef
commit 951f0e0bbd
3 changed files with 1 additions and 7 deletions

View File

@@ -62,8 +62,6 @@ ValgrindConfigWidget::ValgrindConfigWidget(ValgrindBaseSettings *settings,
connect(m_ui->valgrindExeChooser, &Utils::PathChooser::rawPathChanged,
m_settings, &ValgrindBaseSettings::setValgrindExecutable);
connect(m_settings, &ValgrindBaseSettings::valgrindExecutableChanged,
m_ui->valgrindExeChooser, &Utils::PathChooser::setPath);
connect(m_ui->smcDetectionComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
m_settings, &ValgrindBaseSettings::setSelfModifyingCodeDetection);

View File

@@ -143,10 +143,7 @@ void ValgrindBaseSettings::toMap(QVariantMap &map) const
void ValgrindBaseSettings::setValgrindExecutable(const QString &valgrindExecutable)
{
if (m_valgrindExecutable != valgrindExecutable) {
m_valgrindExecutable = valgrindExecutable;
emit valgrindExecutableChanged(valgrindExecutable);
}
m_valgrindExecutable = valgrindExecutable;
}
void ValgrindBaseSettings::setSelfModifyingCodeDetection(int smcDetection)

View File

@@ -78,7 +78,6 @@ public:
void setSelfModifyingCodeDetection(int);
signals:
void valgrindExecutableChanged(const QString &);
void selfModifyingCodeDetectionChanged(int);
private: