summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-02-20 19:06:41 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-02-20 19:06:41 +0100
commit75310e79287a8bdffb86cc1dfda1a0f069383cd6 (patch)
treeba1fb4c201fb38d0f978fd45e8bef0711f3035ee /src/application.cpp
parentOn the street to SingleRekonq.. (diff)
downloadrekonq-75310e79287a8bdffb86cc1dfda1a0f069383cd6.tar.xz
Last commit before branching "di brutto"..
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp40
1 files changed, 1 insertions, 39 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 889ec51f..cc237823 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -61,48 +61,10 @@ NetworkAccessManager *Application::s_networkAccessManager = 0;
Application::Application()
: KUniqueApplication()
-// , m_localServer(0)
{
m_mainWindow = new MainWindow();
- m_mainWindow->show();
-
-// QLocalSocket socket;
-// socket.connectToServer(serverName);
-// if (socket.waitForConnected(500))
-// {
-// QTextStream stream(&socket);
-// int n = args->count();
-// if (n > 1)
-// stream << args->arg(n-1);
-// else
-// stream << QString();
-// stream.flush();
-// socket.waitForBytesWritten();
-// return;
-// }
-//
-// KApplication::setQuitOnLastWindowClosed(true);
-//
-// m_localServer = new QLocalServer(this);
-// connect(m_localServer, SIGNAL(newConnection()), this, SLOT(newLocalSocketConnection()));
-// if (!m_localServer->listen(serverName))
-// {
-// if (m_localServer->serverError() == QAbstractSocket::AddressInUseError
-// && QFile::exists(m_localServer->serverName()))
-// {
-// QFile::remove(m_localServer->serverName());
-// m_localServer->listen(serverName);
-// }
-// }
-//
-// QDesktopServices::setUrlHandler(QLatin1String("http"), this, "openUrl");
-// QString localSysName = QLocale::system().name();
-//
-// KConfig config("rekonqrc");
-// KConfigGroup group = config.group("sessions");
-// m_lastSession = group.readEntry( QString("lastSession"), QByteArray() );
-
setWindowIcon( KIcon("rekonq") );
+ m_mainWindow->show();
QTimer::singleShot(0, this, SLOT( postLaunch() ) );
}