~bstrong-f/fisysmgr/trunk

« back to all changes in this revision

Viewing changes to main/source/editdialog.cpp

  • Committer: Barry Strong
  • Date: 2015-05-15 00:48:11 UTC
  • Revision ID: barry@softtechok.com-20150515004811-498zr74omde5h6qa
Fix backup/restore dialogs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    winWidth = settings->value("MountDialog/Width", 640).toInt();
113
113
    winHeight = settings->value("MountDialog/Height", 480).toInt();
114
114
    dirDialog.resize(winWidth, winHeight);
115
 
    dirDialog.setOption(QFileDialog::DontUseNativeDialog);
116
115
    dirDialog.setFileMode(QFileDialog::Directory);
117
 
    dirDialog.setDirectory(ui->leMntPoint->text());
 
116
    dirName = ui->leMntPoint->text();
 
117
    if (dirName == "")
 
118
        dirName = "/";
 
119
    dirDialog.setDirectory(dirName);
118
120
    result = dirDialog.exec();
119
121
    if ((winWidth != dirDialog.width()) || (winHeight != dirDialog.height())) {
120
122
        winWidth = dirDialog.width();