mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:16:00 +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() {
|
void ImportDialog::accept() {
|
||||||
|
// do nothing if import is not enable
|
||||||
|
if (!_importButton.isEnabled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!fileAccepted) {
|
if (!fileAccepted) {
|
||||||
fileAccepted = true;
|
fileAccepted = true;
|
||||||
emit accepted();
|
emit accepted();
|
||||||
|
|
Loading…
Reference in a new issue