diff options
author | Cristian Adam <cristian.adam@qt.io> | 2023-07-20 18:29:53 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-07-21 11:10:26 +0000 |
commit | 20e43b49e9cde09d658219e74c42172e211bd2e9 (patch) | |
tree | 89ca8f5fc27c73a55718569d64b49aa34febc7ca | |
parent | be944844343e5bd3904950bd4a306831e809d5ef (diff) |
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>
-rw-r--r-- | src/plugins/debugger/loadcoredialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/loadcoredialog.cpp b/src/plugins/debugger/loadcoredialog.cpp index e192a7d90a..6c57b593e1 100644 --- a/src/plugins/debugger/loadcoredialog.cpp +++ b/src/plugins/debugger/loadcoredialog.cpp @@ -161,7 +161,10 @@ AttachCoreDialog::~AttachCoreDialog() 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] { coreFileChanged(d->coreFileName->rawFilePath()); }); |