From 804fdcb85900368fca39a60363e659379b40bfca Mon Sep 17 00:00:00 2001 From: ikemo Date: Thu, 12 Jul 2007 14:21:43 +0000 Subject: [PATCH] refactoring. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@2027 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/mainwindow.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/kita/src/mainwindow.cpp b/kita/src/mainwindow.cpp index 554a50e..92768ca 100644 --- a/kita/src/mainwindow.cpp +++ b/kita/src/mainwindow.cpp @@ -386,16 +386,6 @@ void KitaMainWindow::slotOpenURLRequest( const KURL& url, const KParts::URLArgs& */ /* public slot */ void KitaMainWindow::slotOpenURLRequestExt( const KURL& url, const QString mimetype ) { - // FIXME: support be.2ch.net - if ( url.host() == "be.2ch.net" && url.path().contains( "/test/p.php", true ) < 1 ) { - QMessageBox::warning( this, - "Kita", - i18n( "be.2ch.net is currently not supported." ) ); - return ; - } - - kdDebug() << QString( "Requested OpenURL: \"%1\"" ).arg( url.url() ) << endl; - /* open url with web browser, etc. */ if ( mimetype != QString::null ) { KRun::runURL( url, mimetype ); @@ -408,14 +398,8 @@ void KitaMainWindow::slotOpenURLRequestExt( const KURL& url, const QString mimet return ; } - if ( mimetype == QString::null ) { - QString url_mimetype = KIO::NetAccess::mimetype( url , this ); - kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( url_mimetype ) << endl; - KRun::runURL( url, url_mimetype ); - } else { - kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( mimetype ) << endl; - KRun::runURL( url, mimetype ); - } + QString url_mimetype = KIO::NetAccess::mimetype( url , this ); + KRun::runURL( url, url_mimetype ); } void KitaMainWindow::slotSetMainStatusbar( const QString& statusStr ) -- 2.11.0