Commit ff4ab352 authored by Thorsten Staerk's avatar Thorsten Staerk

Only display icon in system tray once. Backport from master.

BUGS:236566
parent 09d42304
......@@ -97,8 +97,6 @@ bool ktimetrackerpart::openFile(QString icsfile)
{
mMainWidget->openFile(icsfile);
emit setWindowCaption(icsfile);
if ( KTimeTrackerSettings::trayIcon() ) mTray = new TrayIcon( this );
else mTray = new TrayIcon( );
// connections
connect( mMainWidget, SIGNAL( totalTimesChanged( long, long ) ),
......@@ -107,11 +105,6 @@ bool ktimetrackerpart::openFile(QString icsfile)
this, SLOT( setStatusBar( QString ) ) );
connect( mMainWidget, SIGNAL( setCaption( const QString& ) ),
this, SIGNAL( setWindowCaption( const QString& ) ) );
connect( mTray, SIGNAL( quitSelected() ), SLOT( quit() ) );
connect( mMainWidget, SIGNAL( timersActive() ), mTray, SLOT( startClock() ) );
connect( mMainWidget, SIGNAL( timersInactive() ), mTray, SLOT( stopClock() ) );
connect( mMainWidget, SIGNAL( tasksChanged( const QList<Task*>& ) ),
mTray, SLOT( updateToolTip( QList<Task*> ) ));
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment