@ -344,7 +344,7 @@ void Kaffeine::unloadCurrentPart()
{
kdDebug ( ) < < " Kaffeine: Unloading player part: " < < m_currentPartService < < endl ;
if ( m_mediaPart ) {
saveMainWindowSettings ( ka pp- > config ( ) , " Main Window " ) ; // save toolbar state etc.
saveMainWindowSettings ( tdeA pp- > config ( ) , " Main Window " ) ; // save toolbar state etc.
guiFactory ( ) - > removeClient ( m_mediaPart ) ;
}
KService : : Ptr service = KService : : serviceByDesktopName ( m_currentPartService ) ;
@ -438,7 +438,7 @@ void Kaffeine::slotLoadPart(const TQString& desktopName)
//statusBar()->changeItem(playerName, 10);
//slotChangeStatusbar(m_mediaPart->instance()->aboutData()->shortDescription());
guiFactory ( ) - > addClient ( m_mediaPart ) ;
applyMainWindowSettings ( ka pp- > config ( ) , " Main Window " ) ; //restore toolbar state
applyMainWindowSettings ( tdeA pp- > config ( ) , " Main Window " ) ; //restore toolbar state
stateChanged ( " no_media_part " , StateReverse ) ;
if ( isPlaying )
slotPlaylistPlay ( ) ;
@ -754,7 +754,7 @@ void Kaffeine::slotDVBNextBack(int dir)
void Kaffeine : : loadConfig ( )
{
TDEConfig * config = ka pp- > config ( ) ;
TDEConfig * config = tdeA pp- > config ( ) ;
bool b ;
config - > setGroup ( " General Options " ) ;
@ -821,7 +821,7 @@ void Kaffeine::loadConfig()
void Kaffeine : : saveConfig ( )
{
TDEConfig * config = ka pp- > config ( ) ;
TDEConfig * config = tdeA pp- > config ( ) ;
if ( ! m_fullscreen - > isChecked ( ) )
{
@ -1526,14 +1526,14 @@ void Kaffeine::slotQuit()
m_systemTray = NULL ;
} */
if ( ! ka pp- > sessionSaving ( ) ) {
if ( ! tdeA pp- > sessionSaving ( ) ) {
TDEApplication : : exit ( 0 ) ;
}
}
void Kaffeine : : closeEvent ( TQCloseEvent * e )
{
if ( m_systemTray & & ! ka pp- > sessionSaving ( ) )
if ( m_systemTray & & ! tdeA pp- > sessionSaving ( ) )
{
//KMessageBox::information(this, i18n("Closing the main window will keep Kaffeine running in the system tray. Use Quit from the File menu to quit the application."), TQString(), "system_tray_info");
hide ( ) ;
@ -1542,7 +1542,7 @@ void Kaffeine::closeEvent(TQCloseEvent* e)
else
{
slotQuit ( ) ;
if ( ka pp- > sessionSaving ( ) )
if ( tdeA pp- > sessionSaving ( ) )
e - > accept ( ) ;
else
e - > ignore ( ) ;