Commit d2b7e020 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

fix my fix

svn path=/trunk/kdegraphics/kpdf/; revision=359654
parent 038a7004
......@@ -88,11 +88,6 @@ Shell::~Shell()
if(m_part) writeSettings();
}
bool Shell::foundPart() const
{
return m_part;
}
void Shell::openURL( const KURL & url )
{
if ( m_part && m_part->openURL( url ) ) m_recent->addURL (url);
......
......@@ -44,8 +44,6 @@ namespace KPDF
*/
Shell();
bool foundPart() const;
/**
* Default Destructor
*/
......
......@@ -48,7 +48,6 @@ int main(int argc, char** argv)
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
KPDF::Shell* widget;
// see if we are starting with session management
if (app.isRestored())
......@@ -60,14 +59,14 @@ int main(int argc, char** argv)
if (args->count() == 0)
{
widget = new KPDF::Shell;
KPDF::Shell* widget = new KPDF::Shell;
widget->show();
}
else
{
for (int i = 0; i < args->count(); ++i)
{
widget = new KPDF::Shell;
KPDF::Shell* widget = new KPDF::Shell;
widget->show();
widget->openURL(args->url(i));
}
......@@ -75,8 +74,7 @@ int main(int argc, char** argv)
args->clear();
}
if (widget -> foundPart()) return app.exec();
else return 1;
return app.exec();
}
// vim:ts=2:sw=2:tw=78:et
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment