Removed some stuff.
This commit is contained in:
parent
50cb0ba105
commit
691cee9e15
@ -169,20 +169,18 @@ void FormMain::display() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FormMain::onCommitData(QSessionManager &manager) {
|
void FormMain::onCommitData(QSessionManager &manager) {
|
||||||
QFile("/home/martin/Dokumenty/aaa").open(QIODevice::ReadWrite);
|
qDebug("OS asked application to commit its data.");
|
||||||
|
|
||||||
manager.release();
|
manager.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormMain::onSaveState(QSessionManager &manager) {
|
void FormMain::onSaveState(QSessionManager &manager) {
|
||||||
QFile("/home/martin/Dokumenty/ccc").open(QIODevice::ReadWrite);
|
qDebug("OS asked application to save its state.");
|
||||||
|
|
||||||
manager.release();
|
manager.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormMain::onAboutToQuit() {
|
void FormMain::onAboutToQuit() {
|
||||||
QFile("/home/martin/Dokumenty/bbb").open(QIODevice::ReadWrite);
|
|
||||||
|
|
||||||
// Make sure that we obtain close lock
|
// Make sure that we obtain close lock
|
||||||
// BEFORE even trying to quit the application.
|
// BEFORE even trying to quit the application.
|
||||||
if (SystemFactory::getInstance()->applicationCloseLock()->tryLockForWrite(CLOSE_LOCK_TIMEOUT)) {
|
if (SystemFactory::getInstance()->applicationCloseLock()->tryLockForWrite(CLOSE_LOCK_TIMEOUT)) {
|
||||||
|
@ -334,8 +334,8 @@ void FormSettings::loadProxy() {
|
|||||||
|
|
||||||
// Load the settings.
|
// Load the settings.
|
||||||
QNetworkProxy::ProxyType selected_proxy_type = static_cast<QNetworkProxy::ProxyType>(Settings::instance()->value(APP_CFG_PROXY,
|
QNetworkProxy::ProxyType selected_proxy_type = static_cast<QNetworkProxy::ProxyType>(Settings::instance()->value(APP_CFG_PROXY,
|
||||||
"proxy_type",
|
"proxy_type",
|
||||||
QNetworkProxy::NoProxy).toInt());
|
QNetworkProxy::NoProxy).toInt());
|
||||||
Settings *settings = Settings::instance();
|
Settings *settings = Settings::instance();
|
||||||
|
|
||||||
m_ui->m_cmbProxyType->setCurrentIndex(m_ui->m_cmbProxyType->findData(selected_proxy_type));
|
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,
|
QList<QTreeWidgetItem*> matching_items = m_ui->m_treeLanguages->findItems(Settings::instance()->value(APP_CFG_GEN,
|
||||||
"language",
|
"language",
|
||||||
"en").toString(),
|
"en").toString(),
|
||||||
Qt::MatchExactly,
|
Qt::MatchExactly,
|
||||||
1);
|
1);
|
||||||
if (!matching_items.isEmpty()) {
|
if (!matching_items.isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user