Removed some stuff.
This commit is contained in:
parent
50cb0ba105
commit
691cee9e15
@ -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)) {
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user