mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Fix Event treeWidget crash
This commit is contained in:
parent
da8bf0ad38
commit
1368afa7c5
@ -785,6 +785,7 @@ void Daily::RedrawGraphs()
|
|||||||
void Daily::on_treeWidget_itemSelectionChanged()
|
void Daily::on_treeWidget_itemSelectionChanged()
|
||||||
{
|
{
|
||||||
QTreeWidgetItem *item=ui->treeWidget->selectedItems().at(0);
|
QTreeWidgetItem *item=ui->treeWidget->selectedItems().at(0);
|
||||||
|
if (!item) return;
|
||||||
QDateTime d;
|
QDateTime d;
|
||||||
if (!item->text(1).isEmpty()) {
|
if (!item->text(1).isEmpty()) {
|
||||||
d=d.fromString(item->text(1),"yyyy-MM-dd HH:mm:ss");
|
d=d.fromString(item->text(1),"yyyy-MM-dd HH:mm:ss");
|
||||||
|
Loading…
Reference in New Issue
Block a user