mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
suppress error message on open file
BUG: 158806 svn path=/trunk/KDE/kdebase/apps/; revision=848989
This commit is contained in:
parent
f8dca119ea
commit
3cfac24593
1 changed files with 2 additions and 13 deletions
|
@ -676,15 +676,6 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
|
|||
|
||||
KApplication a;
|
||||
|
||||
KGlobal::locale()->insertCatalog("katepart4");
|
||||
#if 0
|
||||
DCOPClient *client = kapp->dcopClient();
|
||||
if (!client->isRegistered())
|
||||
{
|
||||
client->attach();
|
||||
client->registerAs("kwrite");
|
||||
}
|
||||
#endif
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
if (a.isSessionRestored())
|
||||
|
@ -753,16 +744,14 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
|
|||
++docs_opened;
|
||||
KWrite *t = new KWrite();
|
||||
|
||||
// if (Kate::document (t->view()->document()))
|
||||
// KTextEditor::Document::setOpenErrorDialogsActivated (false);
|
||||
t->view()->document()->setSuppressOpeningErrorDialogs (true);
|
||||
|
||||
if (codec)
|
||||
t->view()->document()->setEncoding(codec->name());
|
||||
|
||||
t->loadURL( args->url( z ) );
|
||||
|
||||
// if (Kate::document (t->view()->document()))
|
||||
// KTextEditor::Document::setOpenErrorDialogsActivated (true);
|
||||
t->view()->document()->setSuppressOpeningErrorDialogs (false);
|
||||
|
||||
if (nav)
|
||||
t->view()->setCursorPosition (KTextEditor::Cursor (line, column));
|
||||
|
|
Loading…
Reference in a new issue