Bug 74340

Summary: hide menubar, exit, restart -> cannot reach menu with Ctrl-M any more
Product: [Applications] kghostview Reporter: Jens <jens-bugs.kde.org>
Component: generalAssignee: Luís Pedro Coelho <luis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jens 2004-02-06 13:55:39 UTC
Version:            (using KDE 3.2.0,  (testing/unstable))
Compiler:          gcc version 3.3.3 20040110 (prerelease) (Debian)
OS:          Linux (i686) release 2.4.22b-w4l-p4

How to reproduce:

- Hide menubar, icon bar, status bar, border etc.
- Exit kghostview.
- (optional) Exit KDE, restart KDE.
- Restart kghostview. (everything still hidden)
- Try to get the menubar back via Ctrl-M (as in every other application).

Doesn't work. No way got get the menubar back.
This seems to be a problem. :)


Thanks,

Jens
Comment 1 Luís Pedro Coelho 2004-02-12 14:20:19 UTC
CVS commit by luis_pedro: 

Put the menu bar in a known state when the programm loads and add this action to the RMB-popup.

CCMAIL: 74340-close@bugs.kde.org


  M +2 -0      kgvshell.cpp   1.87


--- kdegraphics/kghostview/kgvshell.cpp  #1.86:1.87
@@ -110,4 +110,5 @@ KGVShell::KGVShell() :
     _popup->insertTitle( i18n( "Full Screen Options" ) );
     m_fullScreenAction->plug( _popup );
+    _showMenuBarAction->plug( _popup );
 
     m_fsFilter = new FullScreenFilter( *this );
@@ -206,4 +207,5 @@ KGVShell::readSettings()
     bool fullScreen = KGlobal::config()->readBoolEntry( "FullScreen", false );
     setFullScreen( fullScreen );
+    _showMenuBarAction->setChecked( menuBar()->isVisible() );
 }