- // get file name
- SUIT_Application* app = myManager->study()->application();
- QString fileName = app->getFileName( false, QString(), filter(), tr( "TLT_DUMP_VIEW" ), 0 );
- if ( !fileName.isEmpty() )
- {
- QImage im = dumpView();
- QString fmt = SUIT_Tools::extension( fileName ).toUpper();
- Qtx::Localizer loc;
- bOk = dumpViewToFormat( im, fileName, fmt );
- }
- else
- bOk = true; // cancelled
+ QStringList fls = filter().split( ";;", QString::SkipEmptyParts );
+ fileName = SUIT_FileDlg::getFileName( NULL, QString(), fls, tr( "TLT_DUMP_VIEW" ), false, true );