Mercurial > hg > octave-lojdl
changeset 16560:ebec000cbfc5
gui: fix editor file name filters to allow all files
* file-editor-tab.cc (file_editor_tab::save_file_as),
file-editor.cc (file_editor::request_open_file): Set "All Files" filter
to *, not *.*.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Tue, 23 Apr 2013 23:12:38 -0400 |
parents | 78765ae325fd |
children | 0e1fe2aff3e5 |
files | libgui/src/m-editor/file-editor-tab.cc libgui/src/m-editor/file-editor.cc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -975,7 +975,7 @@ } } - fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*.*)")); + fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)")); fileDialog->setDefaultSuffix ("m"); fileDialog->setAcceptMode (QFileDialog::AcceptSave); fileDialog->setViewMode (QFileDialog::Detail);
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -159,7 +159,7 @@ // Create a NonModal message. QFileDialog *fileDialog = new QFileDialog (this); - fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*.*)")); + fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)")); fileDialog->setAcceptMode (QFileDialog::AcceptOpen); fileDialog->setViewMode (QFileDialog::Detail); fileDialog->setDirectory (ced);