summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/application.cpp b/src/application.cpp
index a7ac47ce..e3c06a5b 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -52,7 +52,6 @@
#include <KToolInvocation>
#include <KUriFilter>
#include <KMessageBox>
-#include <KProtocolInfo>
#include <KWindowInfo>
// Qt Includes
@@ -95,7 +94,7 @@ int Application::newInstance()
if (isSessionRestored() && sessionManager()->restoreSession())
{
kDebug() << "session restored";
- return 0;
+ return 1;
}
// --------------------------------------------------------------------------
@@ -115,7 +114,7 @@ int Application::newInstance()
for (int i = 0; i < args->count(); ++i)
loadUrl(args->arg(i), Rekonq::NewCurrentTab);
- return 1;
+ return 2;
}
}
@@ -125,14 +124,14 @@ int Application::newInstance()
for (int i = 1; i < args->count(); ++i)
loadUrl(args->arg(i), Rekonq::SettingOpenTab);
- return 2;
+ return 3;
}
// creating new window
MainWindow *w = newMainWindow();
w->slotHome();
- return 3;
+ return 0;
}
@@ -337,12 +336,6 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
loadingUrl = data.uri().url();
}
- if ( !KProtocolInfo::isKnownProtocol( loadingUrl ) )
- {
- KMessageBox::error(0, i18n("Protocol not supported:\n%1", url.protocol()));
- return;
- }
-
WebView *webView = 0;
MainWindow *w = 0;