| 3736 | |
| 3737 | |
| 3738 | void NBrowserWindow::copyNoteUrl() { |
| 3739 | Note n; |
| 3740 | NoteTable ntable(global.db); |
| 3741 | ntable.get(n,this->lid,false,false); |
| 3742 | UserTable utable(global.db); |
| 3743 | User user; |
| 3744 | utable.getUser(user); |
| 3745 | |
| 3746 | QString href = "evernote:///view/" + QString::number(user.id) + QString("/") + |
| 3747 | user.shardId +QString("/") + |
| 3748 | n.guid +QString("/") + |
| 3749 | n.guid + QString("/"); |
| 3750 | QApplication::clipboard()->setText(href, QClipboard::Clipboard); |
| 3751 | } |
| 3752 | |
| 3753 | |
| 3754 |