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

PR: Remove logic to delete last dir separator (\, /) in find and replace widget #3699

Merged
merged 2 commits into from
Nov 23, 2016

Conversation

rlaverde
Copy link
Member

Fixes #3141

@ccordoba12 ccordoba12 added this to the v3.1 milestone Nov 17, 2016
@@ -114,9 +114,6 @@ def set_current_text(self, text):
def add_current_text(self):
"""Add current text to combo box history (convenient method)"""
text = self.currentText()
if osp.isdir(text):
if text[-1] == os.sep:
text = text[:-1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was added by @goanpeca as a little convenience for the Working Directory toolbar. So removing these lines from BaseComboBox is fine.

But (as part of this PR) please also redefine the add_current_text method of PathComboBox (which is some lines below this) to be exactly the same as it was here (PathComboBox is the combobox used in the Working Directory).

@rlaverde rlaverde force-pushed the remove-magic-dir-separator-find branch from 818725c to cb90ce6 Compare November 23, 2016 15:11
@ccordoba12
Copy link
Member

Thanks @rlaverde, merging now!

@ccordoba12 ccordoba12 changed the title Remove logic to delete last dir separator (\, /) in find and replace widget PR: Remove logic to delete last dir separator (\, /) in find and replace widget Nov 23, 2016
@ccordoba12 ccordoba12 merged commit 78ee099 into spyder-ide:3.x Nov 23, 2016
ccordoba12 added a commit that referenced this pull request Nov 23, 2016
@rlaverde rlaverde deleted the remove-magic-dir-separator-find branch November 23, 2016 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants