Skip to content

Commit

Permalink
Added "All Files" to open/save dialogs
Browse files Browse the repository at this point in the history
Because FeatherNotes docs have magic string.
  • Loading branch information
tsujan committed Feb 6, 2019
1 parent 3455a90 commit d4ed80c
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

19 Jan 2018, V0.4.6
6 Feb 2019, V0.4.6

See "ChangeLog" for changes.
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,13 +1056,6 @@
<source>Open file...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1200,6 +1193,13 @@
<source>New Node</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,13 +1056,6 @@
<source>Open file...</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1200,6 +1193,13 @@
<source>New Node</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Öffne Datei…</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>FeatherNotes Dokumente (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Neuer Knotenpunkt</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>FeatherNotes Dokumente (*.fnx);;All Dateien (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_eo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Malfermi dosieron...</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>Dokumentoj de FeatherNotes (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Nova Nodo</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>Dokumentoj de FeatherNotes (*.fnx);;Ĉiuj Dosieroj (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Abrir archivo...</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>Documentos de FeatherNotes (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Nuevo nodo</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>Documentos de FeatherNotes (*.fnx);;Todos los archivos (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Atverti failą...</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>FeatherNotes dokumentai (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Naujas mazgas</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>FeatherNotes dokumentai (*.fnx);;Visi failai (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Bestand openen...</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>FeatherNotes-documenten (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Nieuwe node</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>FeatherNotes-documenten (*.fnx);;Alle bestanden (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Otwórz plik…</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>Dokumenty FeatherNotes (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Nowa gałąź</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>Dokumenty FeatherNotes (*.fnx);;Wszystkie pliki (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_pt_BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,6 @@
<source>Open file...</source>
<translation>Abrir arquivo...</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation>Documentos FeatherNotes (*.fnx)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1202,6 +1195,13 @@
<source>New Node</source>
<translation>Novo Nó</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation>Documentos FeatherNotes (*.fnx);;All Files (*)</translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
14 changes: 7 additions & 7 deletions feathernotes/data/translations/feathernotes_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,13 +1056,6 @@
<source>Open file...</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx)</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1175"/>
<location filename="../../fn.cpp" line="4646"/>
Expand Down Expand Up @@ -1200,6 +1193,13 @@
<source>New Node</source>
<translation></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1037"/>
<location filename="../../fn.cpp" line="1268"/>
<location filename="../../fn.cpp" line="1289"/>
<source>FeatherNotes documents (*.fnx);;All Files (*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../fn.cpp" line="1250"/>
<location filename="../../fn.cpp" line="4423"/>
Expand Down
6 changes: 3 additions & 3 deletions feathernotes/fn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ void FN::openFile()
dialog.setAcceptMode (QFileDialog::AcceptOpen);
dialog.setWindowTitle (tr ("Open file..."));
dialog.setFileMode (QFileDialog::ExistingFiles);
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx)"));
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx);;All Files (*)"));
if (QFileInfo (path).isDir())
dialog.setDirectory (path);
else
Expand Down Expand Up @@ -1265,7 +1265,7 @@ bool FN::saveFile()
dialog.setAcceptMode (QFileDialog::AcceptSave);
dialog.setWindowTitle (tr ("Save As..."));
dialog.setFileMode (QFileDialog::AnyFile);
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx)"));
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx);;All Files (*)"));
dialog.setDirectory (fname.section ("/", 0, -2)); // workaround for KDE
dialog.selectFile (fname);
dialog.autoScroll();
Expand All @@ -1286,7 +1286,7 @@ bool FN::saveFile()
dialog.setAcceptMode (QFileDialog::AcceptSave);
dialog.setWindowTitle (tr ("Save As..."));
dialog.setFileMode (QFileDialog::AnyFile);
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx)"));
dialog.setNameFilter (tr ("FeatherNotes documents (*.fnx);;All Files (*)"));
dialog.setDirectory (fname.section ("/", 0, -2)); // workaround for KDE
dialog.selectFile (fname);
dialog.autoScroll();
Expand Down

0 comments on commit d4ed80c

Please sign in to comment.