mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
ignore double-click on disabled items
This commit is contained in:
parent
dcdbf729c9
commit
3fde4078c5
1 changed files with 5 additions and 0 deletions
|
@ -137,6 +137,11 @@ void ImportDialog::import() {
|
|||
}
|
||||
|
||||
void ImportDialog::accept() {
|
||||
// do nothing if import is not enable
|
||||
if (!_importButton.isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fileAccepted) {
|
||||
fileAccepted = true;
|
||||
emit accepted();
|
||||
|
|
Loading…
Reference in a new issue