summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-12-12 12:45:29 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-12-12 12:45:29 +0000
commit30ddd4cde8df588f145fb5bd490d2077f39d258e (patch)
treebff48dcf402597f74487ec108c6d61692a61a1e6 /src
parentDutch translation update (diff)
downloadinkscape-30ddd4cde8df588f145fb5bd490d2077f39d258e.tar.gz
inkscape-30ddd4cde8df588f145fb5bd490d2077f39d258e.zip
Preferences. Fix for Bug #1401782 (Take from selection button should be greyed out at startup).
Fixed bugs: - https://launchpad.net/bugs/1401782 (bzr r13797)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index ed4b16008..f00463a84 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -279,10 +279,14 @@ void InkscapePreferences::AddNewObjectsStyle(DialogPage &p, Glib::ustring const
p.add_line( true, "", *hb, "", "");
// style swatch
- Gtk::Button* button = Gtk::manage( new Gtk::Button(_("Take from selection"),true));
+ Gtk::Button* button = Gtk::manage( new Gtk::Button(_("Take from selection"), true));
StyleSwatch *swatch = 0;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if (prefs->getInt(prefs_path + "/usecurrent")) {
+ button->set_sensitive(false);
+ }
+
SPCSSAttr *css = prefs->getStyle(prefs_path + "/style");
swatch = new StyleSwatch(css, _("This tool's style of new objects"));
hb->add(*swatch);