mirror of https://github.com/procxx/kepka.git
Fix request pending webpage.
This commit is contained in:
parent
c7ed36d558
commit
097424c535
|
@ -1353,9 +1353,7 @@ void Session::webpageApplyFields(
|
||||||
int duration,
|
int duration,
|
||||||
const QString &author,
|
const QString &author,
|
||||||
TimeId pendingTill) {
|
TimeId pendingTill) {
|
||||||
if (!page->pendingTill && pendingTill > 0) {
|
const auto requestPending = (!page->pendingTill && pendingTill > 0);
|
||||||
_session->api().requestWebPageDelayed(page);
|
|
||||||
}
|
|
||||||
const auto changed = page->applyChanges(
|
const auto changed = page->applyChanges(
|
||||||
type,
|
type,
|
||||||
url,
|
url,
|
||||||
|
@ -1368,6 +1366,9 @@ void Session::webpageApplyFields(
|
||||||
duration,
|
duration,
|
||||||
author,
|
author,
|
||||||
pendingTill);
|
pendingTill);
|
||||||
|
if (requestPending) {
|
||||||
|
_session->api().requestWebPageDelayed(page);
|
||||||
|
}
|
||||||
if (changed) {
|
if (changed) {
|
||||||
notifyWebPageUpdateDelayed(page);
|
notifyWebPageUpdateDelayed(page);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue