Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Feb 25, 2019
1 parent 1540302 commit d2eb759
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 245 deletions.
5 changes: 3 additions & 2 deletions ImportPhotos.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def initGui(self):
self.dlg = ImportPhotosDialog()
#self.dlg.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint)

self.dlg.load_style_path.setPlaceholderText( "e.g." + os.path.join(self.plugin_dir, "photos.qml"))
self.dlg.ok.clicked.connect(self.ok)
self.dlg.closebutton.clicked.connect(self.close)
self.dlg.toolButtonImport.clicked.connect(self.toolButtonImport)
Expand Down Expand Up @@ -361,7 +362,7 @@ def ok(self):
self.directoryPhotos = self.dlg.imp.text()

if self.dlg.input_load_style.text() == '':
self.load_style = os.path.join(self.plugin_dir, "svg", "photos.qml")
self.load_style = os.path.join(self.plugin_dir, "photos.qml")
else:
self.load_style = self.dlg.load_style_path.text()

Expand All @@ -378,7 +379,7 @@ def ok(self):
def import_photos(self, directoryPhotos, outputPath, load_style, showMessageHide=True):

if load_style == '':
self.load_style = os.path.join(self.plugin_dir, "svg", "photos.qml")
self.load_style = os.path.join(self.plugin_dir, "photos.qml")
else:
self.load_style = load_style
self.showMessageHide = showMessageHide
Expand Down
Loading

0 comments on commit d2eb759

Please sign in to comment.