Fixed a bug with crash if pressed any key in batch queue panel; some minor code changes to shortcut keys handling

This commit is contained in:
Ilia Popov
2010-09-14 01:35:47 +02:00
parent 8e404c95a2
commit cfbc6a511c
2 changed files with 34 additions and 43 deletions

View File

@@ -162,8 +162,9 @@ bool RTWindow::keyPressed (GdkEventKey* event) {
if (mainNB->get_current_page() == mainNB->page_num(*fpanel)) {
return fpanel->handleShortcutKey (event);
}
// else if (mainNB->get_nth_page (mainNB->get_current_page()) == bqpanel) {
// }
else if (mainNB->get_current_page() == mainNB->page_num(*bpanel)) {
return false;
}
else {
EditorPanel* ep = (EditorPanel*)mainNB->get_nth_page (mainNB->get_current_page());
return ep->handleShortcutKey (event);