so much for reviewing :-&

Can't open presentation mode if no document is open, if you do, ugly things happen

svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=704884
remotes/origin/kpdf-3.5
Albert Astals Cid 19 years ago
parent 8346c0ef65
commit 21bf363561
  1. 9
      part.cpp

@ -999,9 +999,12 @@ void Part::slotHidePresentation()
void Part::slotTogglePresentation()
{
if ( !m_presentationWidget )
m_presentationWidget = new PresentationWidget( widget(), m_document );
else delete (PresentationWidget*) m_presentationWidget;
if ( m_document->isOpened() )
{
if ( !m_presentationWidget )
m_presentationWidget = new PresentationWidget( widget(), m_document );
else delete (PresentationWidget*) m_presentationWidget;
}
}
void Part::slotPrint()

Loading…
Cancel
Save