r21084 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 13 16:08:53 UTC 2016


Author: fschmid
Date: Sun Mar 13 16:08:52 2016
New Revision: 21084

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21084
Log:
Correctly enable and disable Autosave Dir LineEdit and Button.

Modified:
    trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
    trunk/Scribus/scribus/ui/prefs_documentsetupbase.ui

Modified: trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21084&path=/trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsetup.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_documentsetup.cpp	Sun Mar 13 16:08:52 2016
@@ -187,6 +187,8 @@
 	autosaveKeepCheckBox->setChecked(prefsData->docSetupPrefs.AutoSaveKeep);
 	autosaveDocRadio->setChecked(prefsData->docSetupPrefs.AutoSaveLocation);
 	autosaveDirEdit->setText(prefsData->docSetupPrefs.AutoSaveDir);
+	autosaveDirEdit->setEnabled(!autosaveDocRadio->isChecked());
+	changeAutoDir->setEnabled(!autosaveDocRadio->isChecked());
 	undoCheckBox->setChecked(PrefsManager::instance()->prefsFile->getContext("undo")->getBool("enabled", true));
 	int undoLength = UndoManager::instance()->getHistoryLength();
 	if (undoLength == -1)

Modified: trunk/Scribus/scribus/ui/prefs_documentsetupbase.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21084&path=/trunk/Scribus/scribus/ui/prefs_documentsetupbase.ui
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsetupbase.ui	(original)
+++ trunk/Scribus/scribus/ui/prefs_documentsetupbase.ui	Sun Mar 13 16:08:52 2016
@@ -756,7 +756,72 @@
   <tabstop>undoLengthSpinBox</tabstop>
  </tabstops>
  <resources/>
- <connections/>
+ <connections>
+  <connection>
+   <sender>autosaveDocRadio</sender>
+   <signal>clicked(bool)</signal>
+   <receiver>autosaveDirEdit</receiver>
+   <slot>setDisabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>68</x>
+     <y>261</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>151</x>
+     <y>285</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>autosaveDocRadio</sender>
+   <signal>clicked(bool)</signal>
+   <receiver>changeAutoDir</receiver>
+   <slot>setDisabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>209</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>465</x>
+     <y>286</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>autosaveDirRadio</sender>
+   <signal>clicked(bool)</signal>
+   <receiver>autosaveDirEdit</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>74</x>
+     <y>293</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>142</x>
+     <y>296</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>autosaveDirRadio</sender>
+   <signal>clicked(bool)</signal>
+   <receiver>changeAutoDir</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>85</x>
+     <y>283</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>469</x>
+     <y>290</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
  <buttongroups>
   <buttongroup name="pageLayoutButtonGroup"/>
  </buttongroups>




More information about the scribus-commit mailing list