QString keyword = searchParams->keywords();
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()) {
display = keyword.mid(separator+1);
The::globalActions()->value("download")->setEnabled(DownloadManager::instance()->itemForVideo(video) == 0);
+ // ensure active item is visible
+ // int row = listModel->activeRow();
+ if (row != -1) {
+ QModelIndex index = listModel->index(row, 0, QModelIndex());
+ listView->scrollTo(index, QAbstractItemView::EnsureVisible);
+ }
+
// see you in gotStreamUrl...
}
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);
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);