Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/http/kcookiejar/kcookieserver.cpp
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Line(s) | 226 | for (int i = 1 /*first already done*/; i < mPendingCookies->count(); ++i) { | |||
---|---|---|---|---|---|
231 | } | 231 | } | ||
232 | } | 232 | } | ||
233 | //qDebug() << shownCookies; | 233 | //qDebug() << shownCookies; | ||
234 | 234 | | |||
235 | KCookieWin *kw = new KCookieWin(nullptr, currentList, | 235 | KCookieWin *kw = new KCookieWin(nullptr, currentList, | ||
236 | mCookieJar->preferredDefaultPolicy(), | 236 | mCookieJar->preferredDefaultPolicy(), | ||
237 | mCookieJar->showCookieDetails()); | 237 | mCookieJar->showCookieDetails()); | ||
238 | if (windowId > 0) { | 238 | if (windowId > 0) { | ||
239 | KWindowSystem::setMainWindow(kw, windowId); | 239 | kw->setAttribute(Qt::WA_NativeWindow, true); | ||
240 | KWindowSystem::setMainWindow(kw->windowHandle(), windowId); | ||||
240 | } | 241 | } | ||
241 | 242 | | |||
242 | KCookieAdvice userAdvice = kw->advice(mCookieJar, currentCookie); | 243 | KCookieAdvice userAdvice = kw->advice(mCookieJar, currentCookie); | ||
243 | delete kw; | 244 | delete kw; | ||
244 | // Save the cookie config if it has changed | 245 | // Save the cookie config if it has changed | ||
245 | mCookieJar->saveConfig(mConfig); | 246 | mCookieJar->saveConfig(mConfig); | ||
246 | 247 | | |||
247 | // Apply the user's choice to all cookies that are currently | 248 | // Apply the user's choice to all cookies that are currently | ||
▲ Show 20 Lines • Show All 353 Lines • Show Last 20 Lines |