Corrected a couple of bugs which made history navigation unusable.
parent
5857865126
commit
069e574054
|
@ -4199,7 +4199,7 @@ void CelestiaCore::addToHistory()
|
|||
}
|
||||
}
|
||||
history.push_back(url);
|
||||
historyCurrent = history.size();
|
||||
historyCurrent = history.size() - 1;
|
||||
notifyWatchers(HistoryChanged);
|
||||
}
|
||||
|
||||
|
@ -4207,7 +4207,7 @@ void CelestiaCore::addToHistory()
|
|||
void CelestiaCore::back()
|
||||
{
|
||||
if (historyCurrent == 0) return;
|
||||
if (historyCurrent == history.size())
|
||||
if (historyCurrent == history.size() - 1)
|
||||
{
|
||||
addToHistory();
|
||||
historyCurrent = history.size()-1;
|
||||
|
|
|
@ -216,13 +216,13 @@ void KdeWatcher::notifyChange(CelestiaCore * core, int property)
|
|||
CelestiaCore::LabelFlagsChanged|
|
||||
CelestiaCore::TimeZoneChanged)))
|
||||
kdeapp->resyncMenus();
|
||||
else if (property & CelestiaCore::AmbientLightChanged)
|
||||
if (property & CelestiaCore::AmbientLightChanged)
|
||||
kdeapp->resyncAmbient();
|
||||
else if (property & CelestiaCore::FaintestChanged)
|
||||
if (property & CelestiaCore::FaintestChanged)
|
||||
kdeapp->resyncFaintest();
|
||||
else if (property & CelestiaCore::VerbosityLevelChanged)
|
||||
if (property & CelestiaCore::VerbosityLevelChanged)
|
||||
kdeapp->resyncVerbosity();
|
||||
else if (property & CelestiaCore::HistoryChanged)
|
||||
if (property & CelestiaCore::HistoryChanged)
|
||||
kdeapp->resyncHistory();
|
||||
|
||||
if (property == CelestiaCore::TextEnterModeChanged) {
|
||||
|
|
Loading…
Reference in New Issue