Removed some stuff.

This commit is contained in:
Martin Rotter 2014-01-12 19:46:20 +01:00
parent 50cb0ba105
commit 691cee9e15
2 changed files with 6 additions and 8 deletions

View File

@ -169,20 +169,18 @@ void FormMain::display() {
}
void FormMain::onCommitData(QSessionManager &manager) {
QFile("/home/martin/Dokumenty/aaa").open(QIODevice::ReadWrite);
qDebug("OS asked application to commit its data.");
manager.release();
}
void FormMain::onSaveState(QSessionManager &manager) {
QFile("/home/martin/Dokumenty/ccc").open(QIODevice::ReadWrite);
qDebug("OS asked application to save its state.");
manager.release();
}
void FormMain::onAboutToQuit() {
QFile("/home/martin/Dokumenty/bbb").open(QIODevice::ReadWrite);
// Make sure that we obtain close lock
// BEFORE even trying to quit the application.
if (SystemFactory::getInstance()->applicationCloseLock()->tryLockForWrite(CLOSE_LOCK_TIMEOUT)) {

View File

@ -334,8 +334,8 @@ void FormSettings::loadProxy() {
// Load the settings.
QNetworkProxy::ProxyType selected_proxy_type = static_cast<QNetworkProxy::ProxyType>(Settings::instance()->value(APP_CFG_PROXY,
"proxy_type",
QNetworkProxy::NoProxy).toInt());
"proxy_type",
QNetworkProxy::NoProxy).toInt());
Settings *settings = Settings::instance();
m_ui->m_cmbProxyType->setCurrentIndex(m_ui->m_cmbProxyType->findData(selected_proxy_type));
@ -379,8 +379,8 @@ void FormSettings::loadLanguage() {
}
QList<QTreeWidgetItem*> matching_items = m_ui->m_treeLanguages->findItems(Settings::instance()->value(APP_CFG_GEN,
"language",
"en").toString(),
"language",
"en").toString(),
Qt::MatchExactly,
1);
if (!matching_items.isEmpty()) {