Commit ffd2026a authored by camilo higuita's avatar camilo higuita

allow opening param paths in multiple tabs

parent ea994ae6
...@@ -20,7 +20,7 @@ void Index::openPaths(const QStringList &paths) ...@@ -20,7 +20,7 @@ void Index::openPaths(const QStringList &paths)
else else
list << QUrl::fromLocalFile(file.dir().absolutePath()).toString(); list << QUrl::fromLocalFile(file.dir().absolutePath()).toString();
}else }else
list << url.toString(); list << url.toString();
return list; return list;
})); }));
......
...@@ -163,7 +163,12 @@ Maui.ApplicationWindow ...@@ -163,7 +163,12 @@ Maui.ApplicationWindow
Connections Connections
{ {
target: inx target: inx
onOpenPath: browser.openFolder(paths[0]) onOpenPath:
{
console.log("trying to open paths:", paths)
for(var index in paths)
browser.openTab(paths[index])
}
} }
Component.onCompleted: Component.onCompleted:
......
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