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
137}137}
138 138
139void ImportDialog::accept() {139void ImportDialog::accept() {
140 // do nothing if import is not enable
141 if (!_importButton.isEnabled()) {
142 return;
143 }
144
140 if (!fileAccepted) {145 if (!fileAccepted) {
141 fileAccepted = true;146 fileAccepted = true;
142 emit accepted(); 147 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