by
Changes to 4 files · Browse files at c3ea4b949391 Showing diff from parent 7fc45062a3b4 887a043dd524 Diff from another changeset...
@@ -978,12 +978,12 @@ f = open(self.fn, "w")
f.write(str(self.ini))
f.close()
+ self._btn_apply.set_sensitive(False)
+ self.dirty = False
except IOError, e:
dialog.error_dialog(self, _('Unable to write configuration file'),
str(e))
- self._btn_apply.set_sensitive(False)
- self.dirty = False
return 0
def run(ui, *pats, **opts):
|
@@ -7,32 +7,18 @@ #include <shlwapi.h>
-STDMETHODIMP CShellExt::GetOverlayInfo(LPWSTR pwszIconFile, int cchMax,
- int *pIndex, DWORD *pdwFlags)
+STDMETHODIMP CShellExt::GetOverlayInfo(
+ LPWSTR pwszIconFile, int cchMax, int *pIndex, DWORD *pdwFlags)
{
+ TDEBUG_TRACE("CShellExt::GetOverlayInfo: myTortoiseClass = " << myTortoiseClass);
+ // icons are determined by TortoiseOverlays shim
*pIndex = 0;
- *pdwFlags = ISIOI_ICONFILE;
-
- // get installation path
- std::string dir = GetTHgProgRoot();
- if (dir.empty())
- {
- TDEBUG_TRACE("GetOverlayInfo: THG root is empty");
- wcsncpy(pwszIconFile, L"", cchMax);
- return S_OK;
- }
-
- // find icon per overlay type
- std::wstring dirWide = MultibyteToWide(dir);
- wcsncpy(pwszIconFile, dirWide.c_str(), cchMax);
- cchMax -= static_cast<int>(dirWide.size()) + 1;
-
- std::string path = WideToMultibyte(pwszIconFile);
- TDEBUG_TRACE("GetOverlayInfo: icon path = " << path);
-
+ *pdwFlags = 0;
+ *pwszIconFile = 0;
return S_OK;
}
+
STDMETHODIMP CShellExt::GetPriority(int *pPriority)
{
*pPriority = 1;
|
@@ -39,8 +39,6 @@ extern "C"
int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
- TDEBUG_TRACE("DllMain");
-
if (dwReason == DLL_PROCESS_ATTACH)
{
TDEBUG_TRACE("DllMain: DLL_PROCESS_ATTACH");
|
@@ -47,7 +47,7 @@
fSuccess = ::CallNamedPipeA(
pname.c_str(), (void*)request.c_str(), request.size(), 0, 0, &cbRead,
- 200 /* ms */
+ NMPWAIT_NOWAIT
);
DWORD err = GetLastError();
|
Loading...