mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix Batch Export Dir choice on Mac
For some reason when selecting a target directory for batch export on the Mac the returned value was always the same as the supplied value. Fixed via temporary variables, but not sure why it fixes the problem, tbh.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
BatchExportDialog::BatchExportDialog(MainWindow *main) : QDialog(main), main(main)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
||||
//setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); // must stop using this flag!
|
||||
setWindowTitle(tr("Activity Batch Export"));
|
||||
|
||||
// make the dialog a resonable size
|
||||
@@ -125,11 +125,14 @@ BatchExportDialog::BatchExportDialog(MainWindow *main) : QDialog(main), main(mai
|
||||
void
|
||||
BatchExportDialog::selectClicked()
|
||||
{
|
||||
QString before = dirName->text();
|
||||
QString dir = QFileDialog::getExistingDirectory(this, tr("Select Target Directory"),
|
||||
dirName->text(),
|
||||
before,
|
||||
QFileDialog::ShowDirsOnly
|
||||
| QFileDialog::DontResolveSymlinks);
|
||||
if (dir!="") dirName->setText(dir);
|
||||
if (dir!="") {
|
||||
dirName->setText(dir);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user