~ubuntu-branches/ubuntu/raring/kdepimlibs/raring-proposed

« back to all changes in this revision

Viewing changes to akonadi/agentbase.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-05-30 18:52:38 UTC
  • mfrom: (0.4.6 upstream)
  • mto: (0.5.5 experimental) (1.1.93)
  • mto: This revision was merged to the branch mainline in revision 98.
  • Revision ID: package-import@ubuntu.com-20110530185238-2brrlfj56hnmkhq5
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
514
514
    kDebug() << "Identifier argument missing";
515
515
    exit( 1 );
516
516
  }
517
 
 
518
 
  QByteArray catalog;
519
 
  char *p = strrchr( argv[0], '/' );
520
 
  if ( p )
521
 
    catalog = QByteArray( p + 1 );
522
 
  else
523
 
    catalog = QByteArray( argv[0] );
 
517
 
 
518
  const QFileInfo fi( QString::fromLocal8Bit( argv[0] ) );
 
519
  // strip off full path and possible .exe suffix
 
520
  const QByteArray catalog = fi.baseName().toLatin1();
524
521
 
525
522
  KCmdLineArgs::init( argc, argv, identifier.toLatin1(), catalog, ki18n( "Akonadi Agent" ), "0.1",
526
523
                      ki18n( "Akonadi Agent" ) );