Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 7e48eb02 authored by saubatn's avatar saubatn
Browse files

FIXED : add filter for common image file, for file association for opening...

FIXED : add filter for common image file, for file association for opening with any camitk application.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@553 ec899d31-69d1-42ba-9299-647d76f65fb3
parent c8517e35
......@@ -101,10 +101,18 @@ Application::Application(QString name, int & theArgc, char ** theArgv, bool auto
// File types association with the application for opening
QStringList newFileExtensions;
QStringList fileExtensionsAlreadyRegistered = settings.value("fileExtensionsRegistered").toStringList();
// Forbidden list, to avoid user to have common image file type associated with the application at opening
// TODO : uses a better prompt for user to select each component he wants to register with the application
QStringList fileExtensionForbidden;
foreach (QString extensionFile, ExtensionManager::getFileExtensions())
// check the application can handle new file type
if (!fileExtensionsAlreadyRegistered.contains(extensionFile))
if (!fileExtensionsAlreadyRegistered.contains(extensionFile) && !fileExtensionForbidden.contains(extensionFile))
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