-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch.filefiltereqz
40 lines (38 loc) · 1.57 KB
/
patch.filefiltereqz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Index: src/eqonomize.cpp
===================================================================
--- src/eqonomize.cpp (revision 10)
+++ src/eqonomize.cpp (working copy)
@@ -4569,7 +4569,7 @@
void Eqonomize::fileOpen() {
if(!askSave()) return;
- KUrl url = KFileDialog::getOpenUrl(KUrl(), "application/x-eqonomize", this);
+ KUrl url = KFileDialog::getOpenUrl(KUrl(), "*.eqz", this);
if(!url.isEmpty()) openURL(url);
}
void Eqonomize::fileOpenRecent(const KUrl &url) {
@@ -4582,7 +4582,7 @@
}
void Eqonomize::fileSave() {
if(!current_url.isValid()) {
- KUrl file_url = KFileDialog::getSaveUrl(KUrl("budget"), "application/x-eqonomize", this);
+ KUrl file_url = KFileDialog::getSaveUrl(KUrl("budget"), "*.eqz", this);
if (!file_url.isEmpty() && file_url.isValid()) {
saveURL(file_url);
}
@@ -4592,7 +4592,7 @@
}
void Eqonomize::fileSaveAs() {
- KUrl file_url = KFileDialog::getSaveUrl(current_url.directory(), "application/x-eqonomize", this);
+ KUrl file_url = KFileDialog::getSaveUrl(current_url.directory(), "*.eqz", this);
if (!file_url.isEmpty() && file_url.isValid()) {
saveURL(file_url);
}
@@ -4605,7 +4605,7 @@
else b_save = KMessageBox::warningYesNoCancel(this, i18n("The current file has been modified. Do you want to save it?"));
if(b_save == KMessageBox::Yes) {
if(!current_url.isValid()) {
- KUrl file_url = KFileDialog::getSaveUrl(KUrl("budget"), "application/x-eqonomize", this);
+ KUrl file_url = KFileDialog::getSaveUrl(KUrl("budget"), "*.eqz", this);
if (!file_url.isEmpty() && file_url.isValid()) {
return saveURL(file_url);
} else {