* 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:
parent
2fe84ae95f
commit
a4c2c8924d
@ -346,7 +346,8 @@ FontSelectionView::SetDefaults()
|
||||
defaultFont.SetFamilyAndStyle(family, style);
|
||||
defaultFont.SetSize(size);
|
||||
|
||||
defaultFont.GetFamilyAndStyle(&family, &style);
|
||||
if (defaultFont == fCurrentFont)
|
||||
return;
|
||||
|
||||
_SelectCurrentFont(false);
|
||||
|
||||
|
@ -116,7 +116,7 @@ MainWindow::MessageReceived(BMessage *message)
|
||||
|
||||
case kMsgSetDefaults:
|
||||
fFontsView->SetDefaults();
|
||||
fRevertButton->SetEnabled(true);
|
||||
fRevertButton->SetEnabled(fFontsView->IsRevertable());
|
||||
break;
|
||||
|
||||
case kMsgRevert:
|
||||
|
Loading…
Reference in New Issue
Block a user