comparison main/main.cpp @ 85:4eae5b521a34

* Framework for retrieving files from remote locations
author Chris Cannam
date Mon, 08 Jan 2007 17:04:35 +0000
parents 0d2fb43b5ee5
children a4e79db79282
comparison
equal deleted inserted replaced
84:41c491657587 85:4eae5b521a34
153 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; 153 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed;
154 154
155 if (i == args.begin()) continue; 155 if (i == args.begin()) continue;
156 if (i->startsWith('-')) continue; 156 if (i->startsWith('-')) continue;
157 157
158 if (i->startsWith("http:") || i->startsWith("ftp:")) {
159 status = gui.openURL(QUrl(*i));
160 continue;
161 }
162
158 QString path = *i; 163 QString path = *i;
159 164
160 if (path.endsWith("sv")) { 165 if (path.endsWith("sv")) {
161 if (!haveSession) { 166 if (!haveSession) {
162 status = gui.openSessionFile(path); 167 status = gui.openSessionFile(path);