~paulbrianstewart/ubuntu/oneiric/tellico/852247-Formatting-Fix

« back to all changes in this revision

Viewing changes to src/collectionfieldsdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Regis Boudin
  • Date: 2005-12-06 14:14:47 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051206141447-n3c0u0tww5tyx0x0
Tags: 1.0.3+SVNr327-1
* New upstream release (Closes: #337634)
  + Subversion snapshot to get extra fixes
  + Fixes various bugs (including some crashes)
  + Update IMDB search
  + Include fix from Aurelien Jarno to build on GNU/kFreeBSD (Closes: #336949)
* Remove tight dependency on kdepim-related packages, the C++ ABI transition
  is complete for them. Also remove build-dependency on libkcal2-dev, which is
  pulled by kdepim-dev
* Upload sponsored by Thibaut VARENE <varenet@debian.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
586
586
 
587
587
  // default button is enabled only if default collection contains the field
588
588
  if(m_defaultCollection) {
589
 
    bool hasField = (m_defaultCollection->fieldByName(field->name()) != 0);
 
589
    bool hasField = m_defaultCollection->hasField(field->name());
590
590
    actionButton(KDialogBase::Default)->setEnabled(hasField);
591
591
  }
592
592
 
608
608
    if(name.isEmpty()) { // might end up with empty string
609
609
      name = QString::fromLatin1("custom") + QString::number(m_newFields.count()+1);
610
610
    }
611
 
    while(m_coll->fieldByName(name)) { // ensure name uniqueness
 
611
    while(m_coll->hasField(name)) { // ensure name uniqueness
612
612
      name += QString::fromLatin1("-new");
613
613
    }
614
614
    field->setName(name);