[Digikam-devel] extragear/graphics/digikam/utilities/setup
Francisco J. Cruz
fj.cruz at supercable.es
Fri Feb 10 18:10:11 GMT 2006
SVN commit 508090 by fjcruz:
If "Description" field for a profile is empty, the file name is showed instead this one in the comboboxes.
CCMAIL:digikam-devel at kde.org thorsten.schnebeck at gmx.net
M +38 -6 setupicc.cpp
--- trunk/extragear/graphics/digikam/utilities/setup/setupicc.cpp #508089:508090
@@ -400,23 +400,55 @@
switch ((int)cmsGetDeviceClass(tmpProfile))
{
case icSigInputClass:
- m_inICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+
+ if (QString(cmsTakeProductDesc(tmpProfile)).isEmpty())
+ {
+ m_inICCFiles_description.append(fileName);
+ }
+ else
+ {
+ m_inICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ }
d->inICCFiles_file.append(fileName);
break;
case icSigDisplayClass:
- m_monitorICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
- m_workICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+
+ if (QString(cmsTakeProductDesc(tmpProfile)).isEmpty())
+ {
+ m_monitorICCFiles_description.append(fileName);
+ m_workICCFiles_description.append(fileName);
+ }
+ else
+ {
+ m_monitorICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ m_workICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ }
d->monitorICCFiles_file.append(fileName);
d->workICCFiles_file.append(fileName);
break;
case icSigOutputClass:
- m_proofICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ if (QString(cmsTakeProductDesc(tmpProfile)).isEmpty())
+ {
+ m_proofICCFiles_description.append(fileName);
+ }
+ else
+ {
+ m_proofICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ }
d->proofICCFiles_file.append(fileName);
break;
case icSigColorSpaceClass:
- m_workICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ if(QString(cmsTakeProductDesc(tmpProfile)).isEmpty())
+ {
+ m_workICCFiles_description.append(fileName);
+ m_inICCFiles_description.append(fileName);
+ }
+ else
+ {
+ m_workICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ m_inICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
+ }
d->workICCFiles_file.append(fileName);
- m_inICCFiles_description.append(QString(cmsTakeProductDesc(tmpProfile)));
d->inICCFiles_file.append(fileName);
break;
}
More information about the Digikam-devel
mailing list