Skip to content

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

Merged
astaric merged 1 commit into
biolab:masterfrom
nikicc:fixups
Jul 1, 2016
Merged

[FIX] SelectRows: Index attrs only by visible in set_data#1398
astaric merged 1 commit into
biolab:masterfrom
nikicc:fixups

Conversation

@nikicc
Copy link
Copy Markdown
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
Copy Markdown

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