Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update open_file_action.py #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions python/tk_multi_workfiles/actions/open_file_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ def _do_copy_and_open(self, src_path, dst_path, version, read_only, new_ctx, par
if not dst_path or not new_ctx:
# can't do anything!
return False

if src_path and src_path != dst_path:
# check that the source path exists:
if not os.path.exists(src_path):
QtGui.QMessageBox.critical(parent_ui, "File doesn't exist!",
"The file\n\n%s\n\nCould not be found to open!" % src_path)
return False

if new_ctx != self._app.context:
# ensure folders exist. This serves the
Expand Down