Skip to content

Commit

Permalink
Merge pull request OpenShot#2313 from ferdnyc/useless-logs
Browse files Browse the repository at this point in the history
Useless logs
  • Loading branch information
DylanC authored Nov 2, 2018
2 parents 2a4ab70 + ed4ac32 commit bca04c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/classes/ui_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ def get_icon(theme_name):

if theme_name:
has_icon = QIcon.hasThemeIcon(theme_name)
if not has_icon:
log.warn('Icon theme {} not found. Will use backup icon.'.format(theme_name))
fallback_icon, fallback_path = get_default_icon(theme_name)
# log.info('Fallback icon path for {} is {}'.format(theme_name, fallback_path))
if has_icon or fallback_icon:
return QIcon.fromTheme(theme_name, fallback_icon)
return None
Expand Down Expand Up @@ -196,13 +193,11 @@ def connect_auto_events(window, elem, name):
func_name = name + "_trigger"
if hasattr(window, func_name) and callable(getattr(window, func_name)):
func = getattr(window, func_name)
log.info("Binding event {}:{}".format(window.objectName(), func_name))
elem.triggered.connect(getattr(window, func_name))
if hasattr(elem, 'click'):
func_name = name + "_click"
if hasattr(window, func_name) and callable(getattr(window, func_name)):
func = getattr(window, func_name)
log.info("Binding event {}:{}".format(window.objectName(), func_name))
elem.clicked.connect(getattr(window, func_name))


Expand Down
2 changes: 0 additions & 2 deletions src/windows/models/effects_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def update_model(self, clear=True):
elif effect_info["has_video"] and not effect_info["has_audio"]:
category = "Video"

log.info("category: %s" % category)

# Filter out effect (if needed)
if win.effectsFilter.text() != "":
if not win.effectsFilter.text().lower() in self.app._tr(title).lower() and not win.effectsFilter.text().lower() in self.app._tr(description).lower():
Expand Down

0 comments on commit bca04c2

Please sign in to comment.