mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 23:07:13 +02:00
file dialogs now show option to show all files, trimbits is possible to open non existing file, copying clones does not get rid of the old plot
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@257 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -368,9 +368,13 @@ void qTabAdvanced::BrowseOutputFile(){
|
||||
#endif
|
||||
QString fName = dispFile->text();
|
||||
//dialog
|
||||
fName = QFileDialog::getSaveFileName(this,
|
||||
tr("Choose file to write the trimbits to"),fName,
|
||||
tr("Trimbit files (*.trim noise.sn*) "));
|
||||
QFileDialog *fileDialog = new QFileDialog(this,
|
||||
tr("Save Trimbits"),fName,
|
||||
tr("Trimbit files (*.trim noise.sn*);;All Files(*) "));
|
||||
fileDialog->setFileMode(QFileDialog::AnyFile );
|
||||
if ( fileDialog->exec() == QDialog::Accepted )
|
||||
fName = fileDialog->selectedFiles()[0];
|
||||
|
||||
//if empty, set the file name and it calls SetFileSteps, else ignore
|
||||
if (!fName.isEmpty()){
|
||||
dispFile->setText(fName);
|
||||
|
Reference in New Issue
Block a user