Skip to content
Browse files

Fixed issue with wrong path being copied to the clipboard if the cust…

…om screenshot save directory was set
  • Loading branch information...
1 parent cf4d21b commit d861db65a820ab43d353feee236633fb233b651c @Kami committed May 27, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 settings.py
View
4 settings.py
@@ -66,10 +66,12 @@ def saveSettings(settingsNew):
# Only path relative to Dropbox public directory is allowed
if settingsNew.has_key('screenshot_save_directory'):
saveDirectory = settingsNew['screenshot_save_directory']
- saveDirectory = saveDirectory[len(screengrab.get_public_folder_path()) + 1:] if saveDirectory.find(screengrab.get_public_folder_path()) != -1 and len(saveDirectory) > len(screengrab.get_public_folder_path()) else None
+ saveDirectory = saveDirectory[len(screengrab.get_public_folder_path()) + 1:] if (saveDirectory.find(screengrab.get_public_folder_path()) != -1 and len(saveDirectory) > len(screengrab.get_public_folder_path())) else None
if not saveDirectory:
config.Write('screenshot_save_directory', '')
+ else:
+ config.Write('screenshot_save_directory', saveDirectory)
def getAutoGrabIntervalValueInMs(interval):
"""

0 comments on commit d861db6

Please sign in to comment.
Something went wrong with that request. Please try again.