Permalink
Browse files

Fixed mHasTaskbarButton not being initialized. Removed addToRecentDoc…

…s (XP compat).
  • Loading branch information...
ckaiser committed Feb 21, 2016
1 parent 4d7e070 commit 43c652b63a83934543fa2716fc08c8ff2d1b0ffc
Showing with 2 additions and 24 deletions.
  1. +2 −1 lightscreenwindow.cpp
  2. +0 −18 tools/os.cpp
  3. +0 −3 tools/os.h
  4. +0 −2 tools/screenshot.cpp
View
@@ -63,7 +63,8 @@ LightscreenWindow::LightscreenWindow(QWidget *parent) :
mWasVisible(true),
mLastMessage(0),
mLastMode(-1),
mLastScreenshot()
mLastScreenshot(),
mHasTaskbarButton(false)
{
ui.setupUi(this);
View
@@ -54,24 +54,6 @@
#include "os.h"
void os::addToRecentDocuments(QString fileName)
{
#ifdef Q_OS_WIN
LPCWSTR szFileName = QDir::toNativeSeparators(fileName).toStdWString().c_str();
SHARDAPPIDINFO info;
IShellItem* item;
if (SUCCEEDED(SHCreateItemFromParsingName(szFileName, NULL, IID_PPV_ARGS(&item)))) {
info.psi = item;
info.pszAppID = L"K.Lightscreen"; // our AppID - see above
SHAddToRecentDocs (SHARD_APPIDINFO, &info);
}
#else
Q_UNUSED(fileName)
#endif
}
QPixmap os::cursor()
{
#ifdef Q_OS_WIN
View
@@ -35,9 +35,6 @@ class QIcon;
namespace os
{
// Adds the filename to the Windows recent document list (useful for Windows 7 jump lists)
void addToRecentDocuments(QString fileName);
// Returns the cursor pixmap in Windows
QPixmap cursor();
View
@@ -271,8 +271,6 @@ void Screenshot::save()
else {
result = Screenshot::Fail;
}
os::addToRecentDocuments(fileName);
}
mOptions.fileName = fileName;

0 comments on commit 43c652b

Please sign in to comment.