Browse Source

Fix restoring session when notab

master
boisso 7 years ago
parent
commit
8944afad67
  1. 1
      k-meleon/sessions/sessions.h
  2. 1
      k-meleon/sessions/sessionstore.cpp

1
k-meleon/sessions/sessions.h

@ -272,6 +272,7 @@ public:
}
kPlugin.kFuncs->SetMozillaSessionHistory(hWnd, aTitles, aUrls, shcount, index, 0, 0);
kPlugin.kFuncs->GotoHistoryIndex(hWnd, index);
ShowWindow(hWnd, state);
return active;
}

1
k-meleon/sessions/sessionstore.cpp

@ -347,6 +347,7 @@ bool SessionStore::Read(Session& s)
if (win.HasMember("entries") && win["entries"].IsArray() && win["entries"].Size() > 0) {
w.shcount = win["entries"].Size();
w.index = win["index"].GetInt();
Value& entries = win["entries"];
for (unsigned k=0;k<w.shcount;k++) {
w.urls.push_back(entries[k]["url"].GetString());

Loading…
Cancel
Save