Take a look and tell me your comments or suggestions.
Thank you,
Rafael Fernández López.
Index: kopete/kopete/addaccountwizard/addaccountwizard.cpp
===================================================================
--- kopete/kopete/addaccountwizard/addaccountwizard.cpp (revisión: 594431)
+++ kopete/kopete/addaccountwizard/addaccountwizard.cpp (copia de trabajo)
@@ -36,7 +36,9 @@
#include "kopeteprotocol.h"
#include "kopetepluginmanager.h"
-AddAccountWizard::AddAccountWizard( QWidget *parent, const char *name, bool
modal, bool firstRun )
+bool AddAccountWizard::firstRun = true;
+
+AddAccountWizard::AddAccountWizard( QWidget *parent )
:
KAssistantDialog(parent),
m_accountPage(0),
@@ -61,8 +63,10 @@
// setup the final page
m_finish = new QWidget(this);
m_uiFinish.setupUi(m_finish);
- if ( firstRun )
+ if ( firstRun ) {
m_uiFinish.m_header->setText( i18nc( "2nd message shown to
users on first run of Kopete. Please keep the formatting.",
"<h2>Congratulations</h2><p>You have finished configuring the account. You can
add more accounts with <i>Settings->Configure</i>. Please click the \"Finish\"
button.</p>") );
+ firstRun = false;
+ }
addPage(m_finish,m_finish->windowTitle());
// add the available messenger services to the dialogs list
Index: kopete/kopete/addaccountwizard/addaccountwizard.h
===================================================================
--- kopete/kopete/addaccountwizard/addaccountwizard.h (revisión: 594431)
+++ kopete/kopete/addaccountwizard/addaccountwizard.h (copia de trabajo)
@@ -49,7 +49,7 @@
Q_OBJECT
public:
- AddAccountWizard( QWidget *parent = 0, const char *name = 0 , bool
modal = false, bool firstRun = false );
+ AddAccountWizard( QWidget *parent = 0 );
~AddAccountWizard();
private slots:
@@ -74,6 +74,7 @@
Ui::AddAccountWizardPage2 m_uiFinish;
Kopete::Protocol *m_proto;
KPageWidgetItem *m_selectServiceItem;
+ static bool firstRun;
};
#endif
Index: kopete/kopete/kopeteapplication.cpp
===================================================================
--- kopete/kopete/kopeteapplication.cpp (revisión: 594431)
+++ kopete/kopete/kopeteapplication.cpp (copia de trabajo)
@@ -197,7 +197,7 @@
// command line arguments processed below. But how
exactly? - Martijn
// NB: the command line args are completely broken atm.
// I don't want to fix them for 3.5 as plugin loading will
change for KDE4. - Will
- AddAccountWizard *m_addwizard = new AddAccountWizard(
Kopete::UI::Global::mainWidget(), "addAccountWizard", true, true );
+ AddAccountWizard *m_addwizard = new AddAccountWizard(
Kopete::UI::Global::mainWidget() );
m_addwizard->exec();
Kopete::AccountManager::self()->save();
}
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
