[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] krita/ui/widgets: make compile if ghns isn't available
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2011-12-31 15:17:27
Message-ID: 20111231151727.29E1BA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit a884ddfac4c438c7100b09d684f67e23a9217d5f by Boudewijn Rempt.
Committed on 31/12/2011 at 16:17.
Pushed by rempt into branch 'master'.

make compile if ghns isn't available -- this should always have been ifdeffed

M  +4    -0    krita/ui/widgets/kis_color_space_selector.cc

http://commits.kde.org/calligra/a884ddfac4c438c7100b09d684f67e23a9217d5f

diff --git a/krita/ui/widgets/kis_color_space_selector.cc \
b/krita/ui/widgets/kis_color_space_selector.cc index 6ab2718..cbfdedf 100644
--- a/krita/ui/widgets/kis_color_space_selector.cc
+++ b/krita/ui/widgets/kis_color_space_selector.cc
@@ -193,6 +193,7 @@ void KisColorSpaceSelector::installProfile()
 
 void KisColorSpaceSelector::downloadProfile()
 {
+#ifdef GHNS
     KNS3::DownloadDialog dialog( "kritaiccprofiles.knsrc", this);
     dialog.exec();
     KoColorSpaceEngine *iccEngine = \
KoColorSpaceEngineRegistry::instance()->get("icc"); @@ -208,16 +209,19 @@ void \
KisColorSpaceSelector::downloadProfile()  }
     }
     fillCmbProfiles();
+#endif
 }
 
 void KisColorSpaceSelector::uploadProfile()
 {
+#ifdef GHNS
     KNS3::UploadDialog dialog("kritaiccprofiles.knsrc", this);
     const KoColorProfile *  profile = \
KoColorSpaceRegistry::instance()->profileByName(d->colorSpaceSelector->cmbProfile->currentText());
  if(!profile)  return;
     dialog.setUploadFile(KUrl::fromLocalFile(profile->fileName()));
     dialog.setUploadName(profile->name());
     dialog.exec();
+#endif
 }
 
 void KisColorSpaceSelector::buttonUpdate()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic