kcmkwinrules: Change file filter to "KWin Rules (*.kwinrule)"

This commit is contained in:
Alexander Potashev 2017-10-15 18:35:10 +03:00
parent afe0a5c041
commit 348ad276ac

View file

@ -151,7 +151,7 @@ void KCMRulesList::exportClicked()
int pos = rules_listbox->currentRow(); int pos = rules_listbox->currentRow();
assert(pos != -1); assert(pos != -1);
QString path = QFileDialog::getSaveFileName(this, i18n("Export Rule"), QDir::home().absolutePath(), QString path = QFileDialog::getSaveFileName(this, i18n("Export Rule"), QDir::home().absolutePath(),
i18n("KWin Rule (*.kwinrule)")); i18n("KWin Rules (*.kwinrule)"));
if (path.isEmpty()) if (path.isEmpty())
return; return;
KConfig config(path, KConfig::SimpleConfig); KConfig config(path, KConfig::SimpleConfig);
@ -163,7 +163,7 @@ void KCMRulesList::exportClicked()
void KCMRulesList::importClicked() void KCMRulesList::importClicked()
{ {
QString path = QFileDialog::getOpenFileName(this, i18n("Import Rules"), QDir::home().absolutePath(), QString path = QFileDialog::getOpenFileName(this, i18n("Import Rules"), QDir::home().absolutePath(),
i18n("KWin Rule (*.kwinrule)")); i18n("KWin Rules (*.kwinrule)"));
if (path.isEmpty()) if (path.isEmpty())
return; return;
KConfig config(path, KConfig::SimpleConfig); KConfig config(path, KConfig::SimpleConfig);