mainwindow.cpp
changeset 407 5db8dfd30ea2
parent 406 1c8ff1928b97
child 408 c2a05fa925a1
     1.1 --- a/mainwindow.cpp	Thu Nov 23 13:53:08 2006 +0000
     1.2 +++ b/mainwindow.cpp	Thu Nov 23 16:18:26 2006 +0000
     1.3 @@ -940,7 +940,7 @@
     1.4      a = new QAction(QPixmap(iconPath+"history.png"),  tr( "Show history window","View action" ),this );
     1.5  	a->setStatusTip ( tr( "Show history window" ));
     1.6  	a->setShortcut ( Qt::CTRL + Qt::Key_H  );
     1.7 -	a->setToggleAction(false);
     1.8 +	a->setToggleAction(true);
     1.9      a->addTo( tb );
    1.10  	viewMenu->addAction (a);
    1.11      connect( a, SIGNAL( triggered() ), this, SLOT(windowToggleHistory() ) );
    1.12 @@ -1614,7 +1614,7 @@
    1.13  	currentMapEditor()->reselect();
    1.14  
    1.15  	// Update actions to in menus and toolbars according to editor
    1.16 -	currentMapEditor()->updateActions();
    1.17 +	updateActions();
    1.18  }
    1.19  
    1.20  void Main::fileNew()
    1.21 @@ -3158,6 +3158,8 @@
    1.22  	MapEditor *me=currentMapEditor();
    1.23  	if (!me) return;
    1.24  
    1.25 +	historyWindow->setCaption (tr("History for %1").arg(currentMapEditor()->getFileName()));
    1.26 +
    1.27  	// updateActions is also called when NoteEditor is closed
    1.28  	actionViewToggleNoteEditor->setOn (textEditor->showWithMain());
    1.29