[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kleopatra/crypto/gui
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2008-04-17 7:48:38
Message-ID: 1208418518.371166.21592.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 797974 by osterfeld:

do not assert on page == 0

 M  +1 -2      wizard.cpp  


--- trunk/KDE/kdepim/kleopatra/crypto/gui/wizard.cpp #797973:797974
@@ -159,8 +159,7 @@
     const bool isLast = isLastPage( currentId );
     const bool canGoToNext = q->canGoToNextPage();
     WizardPage* const page = q->page( currentId );
-    assert( page );
-    KGuiItem customNext = page->customNextButton();
+    const KGuiItem customNext = page ? page->customNextButton() : KGuiItem();
     if ( customNext.text().isEmpty() && customNext.icon().isNull() )
         nextButton->setGuiItem( isLast ? finishItem : nextItem );
     else
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic