]> git.sur5r.net Git - minitube/blobdiff - src/SearchView.cpp
Imported Debian patch 1.5-1
[minitube] / src / SearchView.cpp
index 809537ee41573773e06b4c8143e206b1036e901c..11f86d07fa848babebfd9aab1ee8f1f8a2567936 100644 (file)
@@ -134,6 +134,7 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) {
 
     QHBoxLayout *otherLayout = new QHBoxLayout();
     otherLayout->setMargin(0);
+    otherLayout->setSpacing(10);
 
     recentKeywordsLayout = new QVBoxLayout();
     recentKeywordsLayout->setSpacing(5);
@@ -203,7 +204,7 @@ void SearchView::updateRecentKeywords() {
     foreach (QString keyword, keywords) {
         QString link = keyword;
         QString display = keyword;
-        if (keyword.startsWith("http://")) {
+        if (keyword.startsWith("http://") || keyword.startsWith("https://")) {
             int separator = keyword.indexOf("|");
             if (separator > 0 && separator + 1 < keyword.length()) {
                 link = keyword.left(separator);
@@ -243,7 +244,7 @@ void SearchView::updateRecentChannels() {
     foreach (QString keyword, keywords) {
         QString link = keyword;
         QString display = keyword;
-        if (keyword.startsWith("http://")) {
+        if (keyword.startsWith("http://") || keyword.startsWith("https://")) {
             int separator = keyword.indexOf("|");
             if (separator > 0 && separator + 1 < keyword.length()) {
                 link = keyword.left(separator);