mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: correct patterns for window rules in kwinrules KCM
plasma-desktop for example installs such file and it is suffixed with ".kwinrules" (see plasma/containments/desktop/plasma_desktop_containment.kwinrules). also a new MIME type for such file was added, see the following commit in the kdelibs repo: 31553f8958bb3aa36957ae5d2ebe0b315cad27d8 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f6818c64a6
commit
108f16a997
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ void KCMRulesList::exportClicked()
|
|||
{
|
||||
int pos = rules_listbox->currentRow();
|
||||
assert(pos != -1);
|
||||
QString path = KFileDialog::getSaveFileName(KUrl(), "*.kwinrule", this, i18n("Export Rule"), 0);
|
||||
QString path = KFileDialog::getSaveFileName(KUrl(), "*.kwinrules|KWin window rules", this, i18n("Export Rules"), 0);
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
KConfig config(path, KConfig::SimpleConfig);
|
||||
|
@ -163,7 +163,7 @@ void KCMRulesList::exportClicked()
|
|||
|
||||
void KCMRulesList::importClicked()
|
||||
{
|
||||
QString path = KFileDialog::getOpenFileName(KUrl(), "*.kwinrule", this, i18n("Import Rules"));
|
||||
QString path = KFileDialog::getOpenFileName(KUrl(), "*.kwinrules|KWin window rules", this, i18n("Import Rules"));
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
KConfig config(path, KConfig::SimpleConfig);
|
||||
|
|
Loading…
Add table
Reference in a new issue