tableau / tableau-log-viewer

Tableau Log Viewer is a cross-platform tool for quickly glancing over Tableau log files
MIT License
172 stars 51 forks source link

Fix to automatically display the datetime format when log spans multiple days #80

Closed luiseeo closed 6 years ago

luiseeo commented 6 years ago

The code in LogTab::InitTreeView that determines whether to show the datetime OR time format by default was not working correctly.

It was assuming to be getting DateTime from the treemodel (from the COL::Time column). However, it was really getting an integer with the milliseconds since the epoch.

I fixed the TreeModel; the Qt::UserRole no longer has a special code path for the Time column. The "ShowRowDeltas" code had to be updated accordingly.