mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Enable change policy button only when the domain entry is clicked.
BUG: 307834 FIXED-IN:4.10
This commit is contained in:
parent
d5ec286aa0
commit
643a84000f
1 changed files with 2 additions and 3 deletions
|
@ -361,12 +361,12 @@ void KCookiesManagement::on_cookiesTreeWidget_currentItemChanged(QTreeWidgetItem
|
||||||
mUi.secureLineEdit->setText(cookie->secure);
|
mUi.secureLineEdit->setText(cookie->secure);
|
||||||
}
|
}
|
||||||
|
|
||||||
mUi.changePolicyButton->setEnabled(true);
|
mUi.changePolicyButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
clearCookieDetails();
|
clearCookieDetails();
|
||||||
mUi.changePolicyButton->setEnabled(false);
|
mUi.changePolicyButton->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
mUi.deleteButton->setEnabled(true);
|
mUi.deleteButton->setEnabled(true);
|
||||||
|
@ -433,7 +433,6 @@ void KCookiesManagement::on_deleteButton_clicked()
|
||||||
|
|
||||||
mUi.deleteButton->setEnabled(mUi.cookiesTreeWidget->currentItem());
|
mUi.deleteButton->setEnabled(mUi.cookiesTreeWidget->currentItem());
|
||||||
mUi.deleteAllButton->setEnabled(mUi.cookiesTreeWidget->topLevelItemCount() > 0);
|
mUi.deleteAllButton->setEnabled(mUi.cookiesTreeWidget->topLevelItemCount() > 0);
|
||||||
mUi.changePolicyButton->setEnabled(mUi.cookiesTreeWidget->currentItem());
|
|
||||||
|
|
||||||
emit changed( true );
|
emit changed( true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue