[Kde-print-devel] [Bug 107283] kaddprinterwizard settings button is not active

Cristian Tibirna tibirna at kde.org
Thu Sep 29 05:03:06 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=107283         
tibirna kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From tibirna kde org  2005-09-29 05:03 -------
SVN commit 465077 by tibirna:

Don't loose driver information on "Back".
Thanks to Michael Goffioul for hints.
BUG:107283


 M  +1 -0      kmwdrivertest.cpp  
 M  +1 -1      kmwizard.cpp  
 M  +1 -0      kmwizardpage.cpp  
 M  +2 -0      kmwizardpage.h  


--- branches/KDE/3.5/kdelibs/kdeprint/management/kmwdrivertest.cpp #465076:465077
 @ -40,6 +40,7  @
 	m_ID = KMWizard::DriverTest;
 	m_title = i18n("Printer Test");
 	m_nextpage = KMWizard::Name;
+        m_needsinitonback = true;
 	m_driver = 0;
 	m_printer = 0;
 
--- branches/KDE/3.5/kdelibs/kdeprint/management/kmwizard.cpp #465076:465077
 @ -198,7 +198,7  @
 	// raise page + initialize
 	m_stack->raiseWidget(page);
 	m_title->setText(page->title());
-	if (!back) page->initPrinter(m_printer);
+	if (!back || page->needsInitOnBack()) page->initPrinter(m_printer);
 
 	// update buttons
 	if (ID == m_start) m_prev->setEnabled(false);
--- branches/KDE/3.5/kdelibs/kdeprint/management/kmwizardpage.cpp #465076:465077
 @ -26,6 +26,7  @
 	m_ID = KMWizard::Error;
 	m_title = "KMWizardPage";
 	m_nextpage = KMWizard::Error;
+        m_needsinitonback = false;
 }
 
 KMWizardPage::~KMWizardPage()
--- branches/KDE/3.5/kdelibs/kdeprint/management/kmwizardpage.h #465076:465077
 @ -40,11 +40,13  @
 	virtual bool isValid(QString&);
 	virtual void initPrinter(KMPrinter*);
 	virtual void updatePrinter(KMPrinter*);
+        bool needsInitOnBack()          { return m_needsinitonback; }
 
 protected:
 	QString	m_title;
 	int	m_ID;
 	int	m_nextpage;
+        bool    m_needsinitonback;
 };
 
 #endif


More information about the Kde-print-devel mailing list