Skip to content

Fix clipboard data handling issue#819

Merged
sabrogden merged 1 commit intosabrogden:masterfrom
codernirdesh:fix-clipboard
Mar 18, 2025
Merged

Fix clipboard data handling issue#819
sabrogden merged 1 commit intosabrogden:masterfrom
codernirdesh:fix-clipboard

Conversation

@codernirdesh
Copy link
Copy Markdown
Contributor

@codernirdesh codernirdesh commented Mar 18, 2025

Fixes #796

Fix clipboard data handling to prevent symbol insertion instead of copying links.

  • src/ClipboardViewer.cpp

    • Correct the initialization of m_activeWindowTitle in ValidActiveWnd method.
    • Add a newline at the end of the file.
  • src/ClipboardSaveRestore.cpp

    • Add checks to ensure clipboard data is valid before processing in Save and Restore methods.
    • Add checks to ensure clipboard data is valid before processing in multiple locations within the Restore method.
    • Add a newline at the end of the file.

Fixes sabrogden#796

Fix clipboard data handling to prevent symbol insertion instead of copying links.

* **src/ClipboardViewer.cpp**
  - Correct the initialization of `m_activeWindowTitle` in `ValidActiveWnd` method.
  - Add a newline at the end of the file.

* **src/ClipboardSaveRestore.cpp**
  - Add checks to ensure clipboard data is valid before processing in `Save` and `Restore` methods.
  - Add checks to ensure clipboard data is valid before processing in multiple locations within the `Restore` method.
  - Add a newline at the end of the file.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/sabrogden/Ditto/issues/796?shareId=XXXX-XXXX-XXXX-XXXX).
@sabrogden sabrogden merged commit a8f1f9a into sabrogden:master Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2-3 days ago, for some reason miracles started happening with the clipboard and instead of copying the link, these symbols are inserted.

2 participants