Changeset View
Changeset View
Standalone View
Standalone View
dialogs/imagelib/kpDocumentMetaInfoDialog.cpp
Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Line(s) | 681 | { | |||
---|---|---|---|---|---|
683 | // as a result of the user pressing the "Add Row" button, | 683 | // as a result of the user pressing the "Add Row" button, | ||
684 | // should this really append a row since | 684 | // should this really append a row since | ||
685 | // slotFieldsAddRowButtonClicked() button is going to add | 685 | // slotFieldsAddRowButtonClicked() button is going to add | ||
686 | // another one? That's two rows when the user only clicked | 686 | // another one? That's two rows when the user only clicked | ||
687 | // that button once! | 687 | // that button once! | ||
688 | fieldsAppendEmptyRow (); | 688 | fieldsAppendEmptyRow (); | ||
689 | } | 689 | } | ||
690 | } | 690 | } | ||
691 | // Deletes a row if it is emptied of text. | | |||
692 | #if 0 | | |||
693 | // At any normal row? | | |||
694 | else | | |||
695 | { // Emptied all the text? | | |||
696 | if (key.isEmpty () && value.isEmpty ()) | | |||
697 | { | | |||
698 | // This crashes when the user tabs away after the text is deleted. | | |||
699 | // We could use a single shot but that's asking for trouble depending | | |||
700 | // on what happens between us and the single shot. | | |||
701 | // | | |||
702 | // In any case, disabling this makes us more consistent with | | |||
703 | // "Add Row" which allows us to add empty rows. | | |||
704 | //fieldsDeleteRow (r); | | |||
705 | } | | |||
706 | } | | |||
707 | #endif | | |||
708 | } | 691 | } | ||
709 | 692 | | |||
710 | //--------------------------------------------------------------------- | 693 | //--------------------------------------------------------------------- | ||
711 | // private slot | 694 | // private slot | ||
712 | 695 | | |||
713 | void kpDocumentMetaInfoDialog::slotFieldsAddRowButtonClicked () | 696 | void kpDocumentMetaInfoDialog::slotFieldsAddRowButtonClicked () | ||
714 | { | 697 | { | ||
715 | #if DEBUG_KP_DOCUMENT_META_INFO_DIALOG | 698 | #if DEBUG_KP_DOCUMENT_META_INFO_DIALOG | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |