History

ignore double-click on disabled items

stojce committed 12 years ago

Commit 3fde4071 parent dcdbf721 file · +5 −0Browse files

Showing the changes to interface/src/ImportDialog.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ImportDialog.cpp+5−0
@@ -137,6 +137,11 @@ void ImportDialog::import() { · 136 unmodified lines
137137 }
138138
139139 void ImportDialog::accept() {
140+ // do nothing if import is not enable
141+ if (!_importButton.isEnabled()) {
142+ return;
143+ }
144+
140145 if (!fileAccepted) {
141146 fileAccepted = true;
142147 emit accepted();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t