]> source.dussan.org Git - tigervnc.git/commitdiff
Call setMenuKey before initContextMenu to avoid uninitialised
authorPeter Åstrand <astrand@cendio.se>
Thu, 23 Jun 2011 08:40:14 +0000 (08:40 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 23 Jun 2011 08:40:14 +0000 (08:40 +0000)
menuKeyCode.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4520 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index ae9aa106ea3bbadbdfd491103b928027349aff5c..8d57e9bdb19af0918f3fe75e68b0a59dd4c9780c 100644 (file)
@@ -89,9 +89,8 @@ Viewport::Viewport(int w, int h, const rfb::PixelFormat& serverPF, CConn* cc_)
   // reparenting to the current window works for most cases.
   window()->add(contextMenu);
 
-  initContextMenu();
-
   setMenuKey();
+  initContextMenu();
 
   OptionsDialog::addCallback(handleOptions, this);
 }