sqlines-studio/options.cpp
// select new working directory to save data files
select new working directory to save data files
select new working directory to save data files
void Options::selectWorkingDirectory()
{
    QString dir = QFileDialog::getExistingDirectory(this, tr("Select new working directory"),
      workingDirectory, QFileDialog::ShowDirsOnly);
    if(!dir.isEmpty())
    {
      ui->workdirEdit->setText(dir);
    }
}
void Options :: selectWorkingDirectory ( ) { QString dir = QFileDialog :: getExistingDirectory ( this , tr ( " " ) , workingDirectory , QFileDialog :: ShowDirsOnly ) ; if ( ! dir . isEmpty ( ) ) { ui -> workdirEdit -> setText ( dir ) ; } }
select new working directory to save data files
select new working directory to save data files
// we will change working directory variable only on Save, now change UI only