*fix: recheck only possible when order not placed yet
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 18 Nov 2008 09:42:37 +0000 (09:42 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 18 Nov 2008 09:42:37 +0000 (09:42 +0000)
*fix: "Uhr" in German translation needs quotes

git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@195 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/orderwin.cpp
src/smoke_de.ts

index 7a96b7a..565b990 100644 (file)
@@ -51,7 +51,8 @@ MOrderWindow::MOrderWindow(QWidget*par,MWebRequest*r,const MOrder&o)
         ->setEnabled(req->hasRole("createorder")&&o.canOrder());
        m->addAction(tr("&Sell..."),this,SLOT(createSale()))
         ->setEnabled(req->hasRole("createsale")&&o.canSell());
-       m->addAction(tr("&Prune and recheck..."),this,SLOT(recheckOrder()));
+       m->addAction(tr("&Prune and recheck..."),this,SLOT(recheckOrder()))
+        ->setEnabled(o.orderID()<0);
        m->addSeparator();
        m->addAction(tr("C&ancel Order..."),this,SLOT(cancelOrder()))
         ->setEnabled(req->hasRole("cancelorder")&&o.isStored());
index 1642353..b2802a9 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE TS><TS version="1.1" language="de">
+<defaultcodec></defaultcodec>
 <context>
     <name>MCheckDialog</name>
     <message>
@@ -773,7 +774,7 @@ At least %1 Bits of random are required.</source>
         <location filename="order.cpp" line="351"/>
         <source>yyyy-MM-dd hh:mm ap</source>
         <comment>date/time format</comment>
-        <translation>ddd, dd.MM.yyyy hh:mm Uhr</translation>
+        <translation>ddd, dd.MM.yyyy hh:mm &apos;Uhr&apos;</translation>
     </message>
     <message>
         <location filename="order.cpp" line="364"/>