"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "smb4k/smb4kmainwindow.cpp" between
smb4k-3.0.5.tar.xz and smb4k-3.0.6.tar.xz

About: Smb4K is an advanced SMB/CIFS share (network neighborhood) browser for KDE and a frontend to the programs of the Samba software suite.

smb4kmainwindow.cpp  (smb4k-3.0.5.tar.xz):smb4kmainwindow.cpp  (smb4k-3.0.6.tar.xz)
skipping to change at line 127 skipping to change at line 127
default: default:
{ {
break; break;
} }
} }
// //
// Apply the main window settings // Apply the main window settings
// //
setAutoSaveSettings(KConfigGroup(Smb4KSettings::self()->config(), "MainWindow" ), true); setAutoSaveSettings(KConfigGroup(Smb4KSettings::self()->config(), "MainWindow" ), true);
//
// Save the setting no matter how the application is closed
//
connect(qApp, &QCoreApplication::aboutToQuit, this, [this] () { saveSettings()
; });
} }
Smb4KMainWindow::~Smb4KMainWindow() Smb4KMainWindow::~Smb4KMainWindow()
{ {
} }
void Smb4KMainWindow::setupActions() void Smb4KMainWindow::setupActions()
{ {
// //
// Quit action // Quit action
skipping to change at line 421 skipping to change at line 426
if (sharesViewDock) if (sharesViewDock)
{ {
sharesViewDock->saveSettings(); sharesViewDock->saveSettings();
} }
// //
// Save if the main window should be started docked. // Save if the main window should be started docked.
// //
Smb4KSettings::setStartMainWindowDocked(!isVisible()); Smb4KSettings::setStartMainWindowDocked(!isVisible());
//
// Save the settings
//
Smb4KSettings::self()->save();
} }
bool Smb4KMainWindow::queryClose() bool Smb4KMainWindow::queryClose()
{ {
if (!qApp->isSavingSession() && isVisible()) if (!QApplication::closingDown() && !qApp->isSavingSession() && isVisible())
{ {
// This part has been 'stolen' from JuK application. // This part has been 'stolen' from JuK application.
KMessageBox::information(this, KMessageBox::information(this,
i18n("<qt>Closing the main window will keep Smb4K running in the sys tem tray. " i18n("<qt>Closing the main window will keep Smb4K running in the sys tem tray. "
"Use <i>Quit</i> from the <i>File</i> menu to quit the applica tion.</qt>"), "Use <i>Quit</i> from the <i>File</i> menu to quit the applica tion.</qt>"),
i18n("Docking"), "DockToSystemTrayInfo"); i18n("Docking"), "DockToSystemTrayInfo");
setVisible(false); setVisible(false);
return false; return false;
} }
else else
 End of changes. 3 change blocks. 
1 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)