* No longer updates anything in SetDefaults() if the default font is the

same as the current font.
* Don't allow reverting after "Defaults" if there were no changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14806 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-09 20:03:27 +00:00
parent 2fe84ae95f
commit a4c2c8924d
2 changed files with 3 additions and 2 deletions

View File

@ -346,7 +346,8 @@ FontSelectionView::SetDefaults()
defaultFont.SetFamilyAndStyle(family, style);
defaultFont.SetSize(size);
defaultFont.GetFamilyAndStyle(&family, &style);
if (defaultFont == fCurrentFont)
return;
_SelectCurrentFont(false);

View File

@ -116,7 +116,7 @@ MainWindow::MessageReceived(BMessage *message)
case kMsgSetDefaults:
fFontsView->SetDefaults();
fRevertButton->SetEnabled(true);
fRevertButton->SetEnabled(fFontsView->IsRevertable());
break;
case kMsgRevert: