Corrected a couple of bugs which made history navigation unusable.

ver1_5_1
Christophe Teyssier 2005-03-09 22:46:30 +00:00
parent 5857865126
commit 069e574054
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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) {