[live data] Fix crash when trying to import non-ASCII/non-Binary data
ClosedPublic

Authored by croick on Jul 30 2018, 10:06 PM.

Details

Summary

Only ASCII and Binary types are available, but the file may
be detected being another type. The file type combo box does
not include the automatically selected type and returns -1
for the currentIndex, which does not correspond to any file type.

The patch sets a default preview table and introduces a check
if a filter could be set.

Test Plan
  • try to select a HDF5, ROOT, ... file in live data selection

Diff Detail

Repository
R262 LabPlot
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
croick created this revision.Jul 30 2018, 10:06 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptJul 30 2018, 10:06 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
croick requested review of this revision.Jul 30 2018, 10:06 PM
fkristof accepted this revision as: fkristof.Jul 30 2018, 10:37 PM
This revision is now accepted and ready to land.Jul 30 2018, 10:37 PM
This revision was automatically updated to reflect the committed changes.