Commit 7843cab1 authored by Don Gagne's avatar Don Gagne

Fix crash after second push of List Files

parent 8c5fc409
...@@ -196,5 +196,5 @@ void QGCUASFileView::_downloadStatusMessage(const QString& msg) ...@@ -196,5 +196,5 @@ void QGCUASFileView::_downloadStatusMessage(const QString& msg)
void QGCUASFileView::_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous) void QGCUASFileView::_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous)
{ {
Q_UNUSED(previous); Q_UNUSED(previous);
_ui.downloadButton->setEnabled(current->type() == _typeFile); _ui.downloadButton->setEnabled(current ? (current->type() == _typeFile) : false);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment