projects
/
presencevnc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2901c98
)
check vnc view is still there after key menu is closed
author
Christian Pulvermacher
<pulvermacher@gmx.de>
Sat, 4 Feb 2012 14:00:27 +0000
(15:00 +0100)
committer
Christian Pulvermacher
<pulvermacher@gmx.de>
Sat, 4 Feb 2012 14:00:27 +0000
(15:00 +0100)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
4736c5f
..
cf9dfdb
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-321,7
+321,11
@@
void MainWindow::toggleFullscreen()
void MainWindow::showKeyMenu()
{
key_menu->exec();
void MainWindow::showKeyMenu()
{
key_menu->exec();
- vnc_view->sendKeySequence(key_menu->getKeySequence());
+ if(!key_menu)
+ return;
+
+ if(vnc_view)
+ vnc_view->sendKeySequence(key_menu->getKeySequence());
key_menu_button->setChecked(key_menu->isAltChecked() or key_menu->isWinChecked());
}
key_menu_button->setChecked(key_menu->isAltChecked() or key_menu->isWinChecked());
}