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

[FIX] SelectRows: Index attrs only by visible in set_data #1398

Merged
merged 1 commit into from
Jul 1, 2016

Conversation

nikicc
Copy link
Contributor

@nikicc nikicc commented Jul 1, 2016

In set_data we calculate the index of an attribute that is passed to add_rows. Since add_rows only consider visible attributes the index has to be calculated only on visible as well.

Otherwise this caused attr_combo.setCurrentIndex to be set to values larger than the number of items inside it. Strangely this works but causes attr_combo.currentText() to returns an empty string which of course breaks indexing on domain.

In `set_data` we calculate the index of an attribute that is passed to `add_rows`. Since `add_rows` only consider visible attributes the index has to be calculated only on visible as well.

Otherwise this caused `attr_combo.setCurrentIndex` to be set to values larger than the number of items inside it. Strangely this works but causes `attr_combo.currentText()` to returns an empty string which of course breaks indexing on domain.
@codecov-io
Copy link

codecov-io commented Jul 1, 2016

Current coverage is 87.62%

Merging #1398 into master will increase coverage by <.01%

@@             master      #1398   diff @@
==========================================
  Files            75         75          
  Lines          7460       7466     +6   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6536       6542     +6   
  Misses          924        924          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by be46877...8e22ca7

@astaric astaric merged commit 08e7eb9 into biolab:master Jul 1, 2016
@nikicc nikicc deleted the fixups branch July 1, 2016 14:06
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.

3 participants