-rw-r--r-- | noncore/net/ubrowser/mainview.cpp | 9 | ||||
-rw-r--r-- | noncore/net/ubrowser/mainview.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/noncore/net/ubrowser/mainview.cpp b/noncore/net/ubrowser/mainview.cpp index 179fa6b..7931d1a 100644 --- a/noncore/net/ubrowser/mainview.cpp +++ b/noncore/net/ubrowser/mainview.cpp @@ -58,8 +58,17 @@ MainView::MainView(QWidget *parent, const char *name) : QMainWindow(parent, name http = new HttpFactory(browser); + + if( qApp->argc() > 1 ) + { + char **argv = qApp->argv(); + location->setEditText( argv[1] ); + goClicked(); + } } void MainView::goClicked() { + location->insertItem( location->currentText() ); + if(location->currentText().startsWith("http://") ) { diff --git a/noncore/net/ubrowser/mainview.h b/noncore/net/ubrowser/mainview.h index bd9d19c..c786eb9 100644 --- a/noncore/net/ubrowser/mainview.h +++ b/noncore/net/ubrowser/mainview.h @@ -18,4 +18,5 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include <qpe/qpetoolbar.h> +#include <qapplication.h> #include <qmainwindow.h> #include <qwidget.h> |