mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Removed Q_ASSERT because apparently item can be null.
BUG: 307890 FIXED-IN: 4.10
This commit is contained in:
parent
2e6aa88630
commit
a6d9370e01
1 changed files with 18 additions and 21 deletions
|
@ -345,31 +345,28 @@ bool KCookiesManagement::cookieDetails(CookieProp *cookie)
|
|||
|
||||
void KCookiesManagement::on_cookiesTreeWidget_currentItemChanged(QTreeWidgetItem* item)
|
||||
{
|
||||
Q_ASSERT(item);
|
||||
CookieListViewItem* cookieItem = static_cast<CookieListViewItem*>(item);
|
||||
CookieProp *cookie = (cookieItem ? cookieItem->cookie() : 0);
|
||||
if (item) {
|
||||
CookieListViewItem* cookieItem = static_cast<CookieListViewItem*>(item);
|
||||
CookieProp *cookie = (cookieItem ? cookieItem->cookie() : 0);
|
||||
|
||||
if (cookie)
|
||||
{
|
||||
if (cookie->allLoaded || cookieDetails(cookie))
|
||||
{
|
||||
mUi.nameLineEdit->setText(cookie->name);
|
||||
mUi.valueLineEdit->setText(cookie->value);
|
||||
mUi.domainLineEdit->setText(cookie->domain);
|
||||
mUi.pathLineEdit->setText(cookie->path);
|
||||
mUi.expiresLineEdit->setText(cookie->expireDate);
|
||||
mUi.secureLineEdit->setText(cookie->secure);
|
||||
if (cookie) {
|
||||
if (cookie->allLoaded || cookieDetails(cookie)) {
|
||||
mUi.nameLineEdit->setText(cookie->name);
|
||||
mUi.valueLineEdit->setText(cookie->value);
|
||||
mUi.domainLineEdit->setText(cookie->domain);
|
||||
mUi.pathLineEdit->setText(cookie->path);
|
||||
mUi.expiresLineEdit->setText(cookie->expireDate);
|
||||
mUi.secureLineEdit->setText(cookie->secure);
|
||||
}
|
||||
|
||||
mUi.configPolicyButton->setEnabled(false);
|
||||
} else {
|
||||
clearCookieDetails();
|
||||
mUi.configPolicyButton->setEnabled(true);
|
||||
}
|
||||
|
||||
mUi.configPolicyButton->setEnabled(false);
|
||||
mUi.deleteButton->setEnabled(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
clearCookieDetails();
|
||||
mUi.configPolicyButton->setEnabled(true);
|
||||
}
|
||||
|
||||
mUi.deleteButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void KCookiesManagement::on_configPolicyButton_clicked()
|
||||
|
|
Loading…
Reference in a new issue