Browse Source

Fix not being able to `TAB` change sources

Ref #55

It was not possible to change a source using `TAB` just after a new surface creation while it had the default checker source set.
master
Krisjanis Rijnieks 9 years ago
parent
commit
eeb2a8192a
  1. 6
      src/Commands/SetNextSourceCmd.cpp

6
src/Commands/SetNextSourceCmd.cpp

@ -60,7 +60,11 @@ void SetNextSourceCmd::exec(){
} }
if(_sourceIndex == -1){ if(_sourceIndex == -1){
return; if(_sources.size()){
_nextSourceIndex = 0;
}else{
return;
}
} }
_nextSourceIndex = _sourceIndex + 1; _nextSourceIndex = _sourceIndex + 1;

Loading…
Cancel
Save