Commit 9f93d966 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Clip: Don't keep spaces when splitting metatags.

parent 50fc4a8f
......@@ -29,6 +29,7 @@
#include <QTime>
#include <QPushButton>
#include <QInputDialog>
#include <QRegExp>
ClipProperty::ClipProperty( Clip* clip, QWidget *parent ) :
QDialog( parent ),
......@@ -106,7 +107,8 @@ void ClipProperty::addTagsRequired()
if ( ok == true && newTags.length() > 0 )
{
QStringList list = m_model->stringList();
QStringList toAdd = newTags.split( ",", QString::SkipEmptyParts );
QRegExp regexp( "\\s*,\\s*" );
QStringList toAdd = newTags.split( regexp, QString::SkipEmptyParts );
list.append( toAdd );
m_model->setStringList( list );
}
......
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