From 1b33ea76a7636fb0ad3eaaa5e5b7adffd15c6238 Mon Sep 17 00:00:00 2001 From: Christian Pulvermacher Date: Sat, 4 Feb 2012 15:00:27 +0100 Subject: [PATCH] check vnc view is still there after key menu is closed --- src/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4736c5f..cf9dfdb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -321,7 +321,11 @@ void MainWindow::toggleFullscreen() 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()); } -- 1.7.9.5