|
|
|
@ -209,7 +209,7 @@ Krusader::Krusader() : KParts::MainWindow(0,0,WType_TopLevel|WDestructiveClose|T
|
|
|
|
|
// parse command line arguments
|
|
|
|
|
TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
kapp->ref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
tdeApp->ref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
|
|
|
|
|
// create the "krusader"
|
|
|
|
|
App = this;
|
|
|
|
@ -433,7 +433,7 @@ bool Krusader::versionControl() {
|
|
|
|
|
#define FIRST_RUN "First Time"
|
|
|
|
|
bool retval = false;
|
|
|
|
|
// create config file
|
|
|
|
|
config = kapp->config();
|
|
|
|
|
config = tdeApp->config();
|
|
|
|
|
bool firstRun = config->readBoolEntry(FIRST_RUN, true);
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
@ -934,14 +934,14 @@ bool Krusader::queryClose() {
|
|
|
|
|
if( isStarting || isExiting )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
if( kapp->sessionSaving() ) // KDE is logging out, accept the close
|
|
|
|
|
if( tdeApp->sessionSaving() ) // KDE is logging out, accept the close
|
|
|
|
|
{
|
|
|
|
|
saveSettings();
|
|
|
|
|
|
|
|
|
|
kapp->dcopClient()->registerAs( TDEApplication::kApplication()->name(), true );
|
|
|
|
|
tdeApp->dcopClient()->registerAs( tdeApp->name(), true );
|
|
|
|
|
|
|
|
|
|
kapp->deref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
kapp->deref(); // and close the application
|
|
|
|
|
tdeApp->deref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
tdeApp->deref(); // and close the application
|
|
|
|
|
return isExiting = true; // this will also kill the pending jobs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1017,10 +1017,10 @@ bool Krusader::queryClose() {
|
|
|
|
|
// Changes the name of the application. Single instance mode requires unique appid.
|
|
|
|
|
// As Krusader is exiting, we release that unique appid, so new Krusader instances
|
|
|
|
|
// can be started.
|
|
|
|
|
kapp->dcopClient()->registerAs( TDEApplication::kApplication()->name(), true );
|
|
|
|
|
tdeApp->dcopClient()->registerAs( tdeApp->name(), true );
|
|
|
|
|
|
|
|
|
|
kapp->deref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
kapp->deref(); // and close the application
|
|
|
|
|
tdeApp->deref(); // FIX: krusader exits at closing the viewer when minimized to tray
|
|
|
|
|
tdeApp->deref(); // and close the application
|
|
|
|
|
return false; // don't let the main widget close. It stops the pendig copies!
|
|
|
|
|
} else
|
|
|
|
|
return false;
|
|
|
|
@ -1202,7 +1202,7 @@ TQString Krusader::getTempDir() {
|
|
|
|
|
chmod( tmpDir.local8Bit(), S_IRUSR | S_IWUSR | S_IXUSR );
|
|
|
|
|
// add a random sub dir to use
|
|
|
|
|
while ( TQDir().exists( tmpDir ) )
|
|
|
|
|
tmpDir = tmpDir + kapp->randomString( 8 );
|
|
|
|
|
tmpDir = tmpDir + tdeApp->randomString( 8 );
|
|
|
|
|
TQDir().mkdir( tmpDir );
|
|
|
|
|
|
|
|
|
|
if ( !TQDir( tmpDir ).isReadable() ) {
|
|
|
|
@ -1232,7 +1232,7 @@ TQString Krusader::getTempFile() {
|
|
|
|
|
chmod( tmpDir.local8Bit(), S_IRUSR | S_IWUSR | S_IXUSR );
|
|
|
|
|
|
|
|
|
|
while ( TQDir().exists( tmpDir ) )
|
|
|
|
|
tmpDir = tmpDir + kapp->randomString( 8 );
|
|
|
|
|
tmpDir = tmpDir + tdeApp->randomString( 8 );
|
|
|
|
|
return tmpDir;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|