Should be faster than using a full string. Found by krazy.
---
 src/encodingprofilesdialog.cpp |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/encodingprofilesdialog.cpp b/src/encodingprofilesdialog.cpp
index 6a88d16..59116f7 100644
--- a/src/encodingprofilesdialog.cpp
+++ b/src/encodingprofilesdialog.cpp
@@ -102,7 +102,7 @@ void EncodingProfilesDialog::slotShowParams()
     profile_parameters->clear();
     QListWidgetItem *item = profile_list->currentItem();
     if (!item) return;
-    
profile_parameters->setPlainText(item->data(Qt::UserRole).toString().section(";",
 0, 0));
+    
profile_parameters->setPlainText(item->data(Qt::UserRole).toString().section(';',
 0, 0));
 }
 
 void EncodingProfilesDialog::slotDeleteProfile()
@@ -136,11 +136,11 @@ void EncodingProfilesDialog::slotAddProfile()
     QListWidgetItem *item = profile_list->currentItem();
     if (item) {
         QString data = item->data(Qt::UserRole).toString();
-        pparams->setPlainText(data.section(";", 0, 0));
-        pext->setText(data.section(";", 1, 1));
+        pparams->setPlainText(data.section(';', 0, 0));
+        pext->setText(data.section(';', 1, 1));
     }
     if (d->exec() == QDialog::Accepted) {
-        m_configGroup->writeEntry(pname->text(), pparams->toPlainText() + ";" 
+ pext->text());
+        m_configGroup->writeEntry(pname->text(), pparams->toPlainText() + ';' 
+ pext->text());
         slotLoadProfiles();
     }
     delete d;
@@ -169,12 +169,12 @@ void EncodingProfilesDialog::slotEditProfile()
     if (item) {
         pname->setText(item->text());
         QString data = item->data(Qt::UserRole).toString();
-        pparams->setPlainText(data.section(";", 0, 0));
-        pext->setText(data.section(";", 1, 1));
+        pparams->setPlainText(data.section(';', 0, 0));
+        pext->setText(data.section(';', 1, 1));
         pparams->setFocus();
     }
     if (d->exec() == QDialog::Accepted) {
-        m_configGroup->writeEntry(pname->text(), pparams->toPlainText() + ";" 
+ pext->text());
+        m_configGroup->writeEntry(pname->text(), pparams->toPlainText() + ';' 
+ pext->text());
         slotLoadProfiles();
     }
     delete d;
-- 
1.7.10.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Kdenlive-devel mailing list
Kdenlive-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kdenlive-devel

Reply via email to