diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-08 09:41:17 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-08 09:41:17 -0400 |
commit | f1c3841b51d145e88556a658e5506bc3c4849751 (patch) | |
tree | 4c8a1da0fd5f4bce16ad7feec6167fb203aee97b /lumina-config | |
parent | Merge pull request #16 from Nanolx/side-work (diff) | |
download | lumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.gz lumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.bz2 lumina-f1c3841b51d145e88556a658e5506bc3c4849751.zip |
Clean up the default filemanager/terminal settings. Put them in the main session file (instead of desktop settings), and also have lumina-config safe it to the lumina-open defaults file directly (in the case of the file manager).
Diffstat (limited to 'lumina-config')
-rw-r--r-- | lumina-config/mainUI.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index ada56df2..df4b4d11 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -619,8 +619,9 @@ void MainUI::saveCurrentSettings(bool screenonly){ // Menu Page if(modmenu && !screenonly){ - settings->setValue("default-terminal", ui->line_menu_term->text() ); - settings->setValue("default-filemanager", ui->line_menu_fm->text() ); + sessionsettings->setValue("default-terminal", ui->line_menu_term->text() ); + sessionsettings->setValue("default-filemanager", ui->line_menu_fm->text() ); + appsettings->setValue("default/directory", ui->line_menu_fm->text() ); QStringList items; for(int i=0; i<ui->list_menu->count(); i++){ items << ui->list_menu->item(i)->whatsThis(); @@ -1013,7 +1014,7 @@ void MainUI::findmenuterminal(){ void MainUI::findmenufilemanager(){ QString chkpath = LOS::AppPrefix() + "bin"; if(!QFile::exists(chkpath)){ chkpath = QDir::homePath(); } - QString bin = QFileDialog::getOpenFileName(this, tr("Set Default File MAnager"), chkpath, tr("Application Binaries (*)") ); + QString bin = QFileDialog::getOpenFileName(this, tr("Set Default File Manager"), chkpath, tr("Application Binaries (*)") ); if( bin.isEmpty() || !QFile::exists(bin) ){ return; } //cancelled if( !QFileInfo(bin).isExecutable() ){ QMessageBox::warning(this, tr("Invalid Binary"), tr("The selected file is not executable!")); @@ -1028,8 +1029,8 @@ void MainUI::checkmenuicons(){ ui->tool_menu_up->setEnabled( ui->list_menu->currentRow() > 0 ); ui->tool_menu_dn->setEnabled( ui->list_menu->currentRow() < (ui->list_menu->count()-1) ); ui->tool_menu_rm->setEnabled( ui->list_menu->currentRow() >=0 ); - if( settings->value("default-terminal","").toString() != ui->line_menu_term->text() || - settings->value("default-filemanager","").toString() != ui->line_menu_fm->text()){ + if( sessionsettings->value("default-terminal","xterm").toString() != ui->line_menu_term->text() || + sessionsettings->value("default-filemanager","lumina-fm").toString() != ui->line_menu_fm->text()){ ui->push_save->setEnabled(true); modmenu = true; } |