Skip to content
Snippets Groups Projects
Commit 3b4ef4c0 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix titles being cut at the first space

Since titles can have spaces we don't have to take parts[3] but the rest of the parts from 3 to the end joined by ' '

CCBUG: 306243
parent 45c04530
No related branches found
No related tags found
Loading
......@@ -499,7 +499,7 @@ void WorkSheet::dropEvent( QDropEvent *event )
QString hostName = parts[ 0 ];
QString sensorName = parts[ 1 ];
QString sensorType = parts[ 2 ];
QString sensorDescr = parts[ 3 ];
QString sensorDescr = QStringList(parts.mid( 3 )).join(' ');
if ( hostName.isEmpty() || sensorName.isEmpty() || sensorType.isEmpty() )
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment