LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdebase-pardus-fix-boolean-error.patch of Package kdebase3 (Project openSUSE:Factory)

From fa7573fa0c354b26c079490bbe6d619fcb7ddb85 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ozan=20=C3=87a=C4=9Flayan?= <ozan@pardus.org.tr>
Date: Mon, 27 Jun 2011 05:37:55 +0000
Subject: [PATCH] kfontinst: Fix boolean error

---
 kcontrol/kfontinst/viewpart/FontViewPart.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kcontrol/kfontinst/viewpart/FontViewPart.cpp b/kcontrol/kfontinst/viewpart/FontViewPart.cpp
index 92ddf44..c649f01 100644
--- a/kcontrol/kfontinst/viewpart/FontViewPart.cpp
+++ b/kcontrol/kfontinst/viewpart/FontViewPart.cpp
@@ -198,7 +198,7 @@ void CFontViewPart::previewStatus(bool st)
     itsInstallButton->setShown(st && itsShowInstallButton);
     itsToolsFrame->setShown(itsInstallButton->isShown()||itsFaceSelector->isShown());
     itsChangeTextAction->setEnabled(st);
-    itsPrintAction->setEnabled(st && KFI_KIO_FONTS_PROTOCOL==m_url.protocol());
+    itsPrintAction->setEnabled(st || KFI_KIO_FONTS_PROTOCOL==m_url.protocol());
 }
 
 void CFontViewPart::install()
-- 
1.6.1