|
|
|
@ -52,7 +52,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
KopeteApplication::KopeteApplication()
|
|
|
|
|
: KUniqueApplication( true, true, true )
|
|
|
|
|
: TDEUniqueApplication( true, true, true )
|
|
|
|
|
{
|
|
|
|
|
m_isShuttingDown = false;
|
|
|
|
|
m_mainWindow = new KopeteWindow( 0, "mainWindow" );
|
|
|
|
@ -274,18 +274,18 @@ int KopeteApplication::newInstance()
|
|
|
|
|
* The following three lines work around a problem that
|
|
|
|
|
* Kopete has since it has multiple main windows so
|
|
|
|
|
* qapp->mainWidget() returns 0, which breaks the normal
|
|
|
|
|
* KUniqueApplication::newInstance() behavior that raises
|
|
|
|
|
* TDEUniqueApplication::newInstance() behavior that raises
|
|
|
|
|
* the window when we run a new instance.
|
|
|
|
|
*
|
|
|
|
|
* 1. Set the main widget to the contact list window
|
|
|
|
|
* 2. Call KUniqueApplication::newInstance()
|
|
|
|
|
* 2. Call TDEUniqueApplication::newInstance()
|
|
|
|
|
* 3. Set the main widget back to 0
|
|
|
|
|
*
|
|
|
|
|
* This little workaround fixes the problem. -Matt
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
setMainWidget( m_mainWindow );
|
|
|
|
|
int kUnitqAppReturnCode = KUniqueApplication::newInstance();
|
|
|
|
|
int kUnitqAppReturnCode = TDEUniqueApplication::newInstance();
|
|
|
|
|
setMainWidget( 0L );
|
|
|
|
|
|
|
|
|
|
return kUnitqAppReturnCode;
|
|
|
|
@ -331,7 +331,7 @@ void KopeteApplication::quitKopete()
|
|
|
|
|
void KopeteApplication::commitData( TQSessionManager &sm )
|
|
|
|
|
{
|
|
|
|
|
m_isShuttingDown = true;
|
|
|
|
|
KUniqueApplication::commitData( sm );
|
|
|
|
|
TDEUniqueApplication::commitData( sm );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include "kopeteapplication.moc"
|
|
|
|
|