<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>429715</bug_id>
          
          <creation_ts>2020-11-27 09:44:15 +0000</creation_ts>
          <short_desc>When importing with the rename function, &apos;import selected&apos; does not import files</short_desc>
          <delta_ts>2020-11-29 15:56:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>AdvancedRename-Import</component>
          <version>7.1.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Spidermonkey">antonrosenfeld</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/commit/a997ab334e9aeb87b0249259fb1f7da1f4019f95</cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1979275</commentid>
    <comment_count>0</comment_count>
    <who name="Spidermonkey">antonrosenfeld</who>
    <bug_when>2020-11-27 09:44:15 +0000</bug_when>
    <thetext>SUMMARY
There is a problem with the rename function when importing files from a memory card.
If I have the rename function set to rename files with a numerical sequence, then &apos;import selected&apos; does not import the files. &apos;Import all&apos; works. &apos;Import selected&apos; only works if I choose to keep the original names of the files.


STEPS TO REPRODUCE
1. I am on Windows 10, importing files from a memory card to an external hard drive
2. If I choose rename file with a numerical sequence, then select some files on the memory card, the files are not imported - there is no response.
3. A successful import is achieved if either I choose &apos;select all&apos; or choose to keep the original file names.

OBSERVED RESULT
I am not able to import files if both &apos;file rename&apos; and &apos;import selected&apos; is chosen. A successful import is achieved if either I choose &apos;select all&apos; or choose to keep the original file names.

EXPECTED RESULT
I would expect to be able to import selected files and rename them at the same time.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979292</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-11-27 12:30:08 +0000</bug_when>
    <thetext>I cannot reproduce the problem here in the Windows version. The renaming cannot actually have any influence, something else must trigger the problem. Please post your renaming string.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979306</commentid>
    <comment_count>2</comment_count>
    <who name="Spidermonkey">antonrosenfeld</who>
    <bug_when>2020-11-27 15:09:34 +0000</bug_when>
    <thetext>Thanks for getting back so quickly.
I have just tried it again, and now it seems to be working OK, I can&apos;t reproduce the problem either. This seems strange as I have had this error over a the period of a month. I will keep an eye on the settings and see if it is something I am doing that is causing it.
FYI here is an example of the renaming string
Brandon Woods Railway Bridge #</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979473</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-11-28 15:25:01 +0000</bug_when>
    <thetext>Git commit a997ab334e9aeb87b0249259fb1f7da1f4019f95 by Maik Qualmann.
Committed on 28/11/2020 at 15:24.
Pushed by mqualmann into branch &apos;master&apos;.

fix double event for update download names
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +20   -32   core/utilities/import/main/importui.cpp

https://invent.kde.org/graphics/digikam/commit/a997ab334e9aeb87b0249259fb1f7da1f4019f95</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979479</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-11-28 15:28:28 +0000</bug_when>
    <thetext>If you click outside the thumbnails to draw a selection, a live preview of the download names is performed. This can be quite time consuming when there are thousands of files in the view. This function was unnecessarily performed twice and was therefore much slower afterwards. Should you still find a problem, open the bug again.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979760</commentid>
    <comment_count>5</comment_count>
    <who name="Spidermonkey">antonrosenfeld</who>
    <bug_when>2020-11-29 15:56:03 +0000</bug_when>
    <thetext>Many thanks for your help.
Looking into it further, I think there may be a problem with my card reader on my laptop, which would explain why the problem is intermittent. Importing when connected directly to the camera works perfectly. Sorry that I didn&apos;t look at this first.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>