summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-03 01:45:09 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-03 01:45:09 +0200
commiteeff2aa63a3006167542071bd19dd44ffbed8ba2 (patch)
tree54491ed81dbf7a33cd618bf2c28d97420dc3b356 /src/application.cpp
parentOpen Location Icon (diff)
downloadrekonq-eeff2aa63a3006167542071bd19dd44ffbed8ba2.tar.xz
Added Comments in main.cpp
Fixed loading external sites on new tabs. This costs us a forced initial resizing.. that could be payed (perhaps..)!
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 3ff931e4..3b73cf56 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -64,7 +64,7 @@ Application::Application()
m_mainWindow = new MainWindow();
m_mainWindow->setObjectName("MainWindow");
setWindowIcon(KIcon("rekonq"));
- newWebView();
+// newWebView();
m_mainWindow->show();
@@ -86,9 +86,7 @@ int Application::newInstance()
if (args->count() > 0)
{
- KUrl url = MainWindow::guessUrlFromString(args->arg(0));
- mainWindow()->loadUrl(url);
- for (int i = 1; i < args->count(); ++i)
+ for (int i = 0; i < args->count(); ++i)
{
KUrl url = MainWindow::guessUrlFromString(args->arg(i));
newWebView();
@@ -98,6 +96,7 @@ int Application::newInstance()
}
else
{
+ newWebView();
mainWindow()->slotHome();
}