chiark / gitweb /
where-vessels: disable "Show" for smash ownership when no notes
[ypp-sc-tools.db-test.git] / yarrg / where-vessels
index b961e4e3818f2037c3d49ffc2f1f71d49549b411..78a29543244ea91848c406051e12bd2d658196fc 100755 (executable)
@@ -675,6 +675,7 @@ proc make-smashers {} {
     glset smash_owner [expr {[have-ownership] ? 0 : 3}]
     set cw [make-radio-smasher owner "Lock/\nowner" smash_owner \
                {Show Yours? {For you} Lock Hide} 2 3]
+    if {![have-notes]} { $cw.0 configure -state disabled }
     if {![have-ownership]} {
        foreach ix {1 2} { $cw.$ix configure -state disabled }
     }