From aae5ebe5008a41fe4a4767092d7e17600abf6725 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 20 Jan 2025 18:26:41 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- kmail/kmmainwin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kmail/kmmainwin.cpp') diff --git a/kmail/kmmainwin.cpp b/kmail/kmmainwin.cpp index d1abdab6..120b1606 100644 --- a/kmail/kmmainwin.cpp +++ b/kmail/kmmainwin.cpp @@ -33,7 +33,7 @@ KMMainWin::KMMainWin(TQWidget *) // modal subdialogs will only affect this dialog, not the other windows setWFlags( getWFlags() | WGroupLeader ); - kapp->ref(); + tdeApp->ref(); (void) new TDEAction( i18n("New &Window"), "window-new", 0, this, TQ_SLOT(slotNewMailReader()), @@ -86,7 +86,7 @@ KMMainWin::~KMMainWin() { saveMainWindowSettings(KMKernel::config(), "Main Window"); KMKernel::config()->sync(); - kapp->deref(); + tdeApp->deref(); if ( !kmkernel->haveSystemTrayApplet() ) { // Check if this was the last KMMainWin @@ -103,7 +103,7 @@ KMMainWin::~KMMainWin() if ( not_withdrawn == 0 ) { kdDebug(5006) << "Closing last KMMainWin: stopping mail check" << endl; - // Running TDEIO jobs prevent kapp from exiting, so we need to kill them + // Running TDEIO jobs prevent tdeApp from exiting, so we need to kill them // if they are only about checking mail (not important stuff like moving messages) kmkernel->abortMailCheck(); kmkernel->acctMgr()->cancelMailCheck(); @@ -206,10 +206,10 @@ void KMMainWin::slotConfigChanged() //----------------------------------------------------------------------------- bool KMMainWin::queryClose() { - if ( kapp->sessionSaving() ) + if ( tdeApp->sessionSaving() ) writeConfig(); - if ( kmkernel->shuttingDown() || kapp->sessionSaving() || mReallyClose ) + if ( kmkernel->shuttingDown() || tdeApp->sessionSaving() || mReallyClose ) return true; return kmkernel->canQueryClose(); } -- cgit v1.2.3