diff -r 1c8ff1928b97 -r 5db8dfd30ea2 mainwindow.cpp --- a/mainwindow.cpp Thu Nov 23 13:53:08 2006 +0000 +++ b/mainwindow.cpp Thu Nov 23 16:18:26 2006 +0000 @@ -940,7 +940,7 @@ a = new QAction(QPixmap(iconPath+"history.png"), tr( "Show history window","View action" ),this ); a->setStatusTip ( tr( "Show history window" )); a->setShortcut ( Qt::CTRL + Qt::Key_H ); - a->setToggleAction(false); + a->setToggleAction(true); a->addTo( tb ); viewMenu->addAction (a); connect( a, SIGNAL( triggered() ), this, SLOT(windowToggleHistory() ) ); @@ -1614,7 +1614,7 @@ currentMapEditor()->reselect(); // Update actions to in menus and toolbars according to editor - currentMapEditor()->updateActions(); + updateActions(); } void Main::fileNew() @@ -3158,6 +3158,8 @@ MapEditor *me=currentMapEditor(); if (!me) return; + historyWindow->setCaption (tr("History for %1").arg(currentMapEditor()->getFileName())); + // updateActions is also called when NoteEditor is closed actionViewToggleNoteEditor->setOn (textEditor->showWithMain());