Debugger: Fix core loading dialog

With lldb on Windows I had cases when the "OK" button would be disabled
even though I had the files set for both fields.

Change-Id: I510e63d0e27e685df7c5c3f6e6f1d608f0e63bb0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Cristian Adam
2023-07-20 18:29:53 +02:00
committed by hjk
parent be94484434
commit 20e43b49e9

View File

@@ -161,7 +161,10 @@ AttachCoreDialog::~AttachCoreDialog()
int AttachCoreDialog::exec() int AttachCoreDialog::exec()
{ {
connect(d->symbolFileName, &PathChooser::textChanged, this, &AttachCoreDialog::changed); connect(d->symbolFileName, &PathChooser::validChanged, this, &AttachCoreDialog::changed);
connect(d->coreFileName, &PathChooser::validChanged, this, [this] {
coreFileChanged(d->coreFileName->rawFilePath());
});
connect(d->coreFileName, &PathChooser::textChanged, this, [this] { connect(d->coreFileName, &PathChooser::textChanged, this, [this] {
coreFileChanged(d->coreFileName->rawFilePath()); coreFileChanged(d->coreFileName->rawFilePath());
}); });